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:

The strlcpy() function returns strlen(src). If retval >= siz, truncation occurred.

Copy src to string dst of size siz. At most siz-1 characters will be copied. Always NULL terminates (unless siz == 0).
Remember:

The strlcpy() function returns strlen(src). If retval >= siz, truncation occurred.