2.2.22 size_t strlcpy
size_t strlcpy(char *, const char *, size_t)
Copy src
to string dst
of size siz
. At most siz-1
characters will be copied. Always NULL terminates (unless siz
== 0).
Remember:
Copy src to string dst of size siz. At most siz-1 characters will be copied. Always NULL terminates (unless siz == 0).The strlcpy() function returns strlen(src). If retval >= siz, truncation occurred.
Remember:
The strlcpy() function returns strlen(src). If retval >= siz, truncation occurred.