1STRNCPY(9) Basic C Library Functions STRNCPY(9)
2
3
4
6 strncpy - Copy a length-limited, NUL-terminated string
7
9 char * strncpy(char * dest, const char * src, size_t count);
10
12 dest
13 Where to copy the string to
14
15 src
16 Where to copy the string from
17
18 count
19 The maximum number of bytes to copy
20
22 The result is not NUL-terminated if the source exceeds count bytes.
23
24 In the case where the length of src is less than that of count, the
25 remainder of dest will be padded with NUL.
26
28Kernel Hackers Manual 2.6. November 2011 STRNCPY(9)