table of contents
other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
STRLCPY(9) | Basic C Library Functions | STRLCPY(9) |
NAME¶
strlcpy - Copy a C-string into a sized bufferSYNOPSIS¶
size_t strlcpy(char * dest,
const char * src,
size_t size);
ARGUMENTS¶
destWhere to copy the string to
src
Where to copy the string from
size
size of destination buffer
DESCRIPTION¶
Compatible with *BSD: the result is always a valid NUL-terminated string that fits in the buffer (unless, of course, the buffer size is zero). It does not pad out the result like strncpy does.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 4.9. |