1STRNCPY(9)                 Basic C Library Functions                STRNCPY(9)
2
3
4

NAME

6       strncpy - Copy a length-limited, NUL-terminated string
7

SYNOPSIS

9       char * strncpy(char * dest, const char * src, size_t count);
10

ARGUMENTS

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

DESCRIPTION

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.         June 2019                        STRNCPY(9)
Impressum