1STRLCPY(9) Basic C Library Functions STRLCPY(9)
2
3
4
6 strlcpy - Copy a NUL terminated string into a sized buffer
7
9 size_t strlcpy(char * dest, const char * src, size_t size);
10
12 dest
13 Where to copy the string to
14
15 src
16 Where to copy the string from
17
18 size
19 size of destination buffer
20
22 the result is always a valid NUL-terminated string that fits in the
23 buffer (unless, of course, the buffer size is zero). It does not pad
24 out the result like strncpy does.
25
27Kernel Hackers Manual 2.6. November 2011 STRLCPY(9)