Table of Contents
The
and functions copy the string to (including the terminating character).
The copies not more than characters into appending characters if
is less than characters long, and terminating if is more than characters
long.
The and functions return
The following sets
to (void)strncpy(chararray, "abc", 6). The following sets to (void)strncpy(chararray,
"abcdefgh", 6);
The and functions conform to
Table of Contents