2006-07-12 08:05:54 +00:00
|
|
|
strncpy() is unsafe since it does not always add a final NUL-byte.
|
2018-04-14 17:38:34 +00:00
|
|
|
OpenBSD developed a safer version called strlcpy().
|
2006-07-12 08:05:54 +00:00
|
|
|
|
|
|
|
Use "man -l strlcpy.3" to read the manpage.
|
|
|
|
|
|
|
|
The files strlcpy.3 and strlcpy.c comes from
|
|
|
|
ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/
|
|
|
|
and are Copyright (c) 1998, 2000 Todd C. Miller
|
|
|
|
<Todd.Miller@courtesan.com>
|