Header: string.h
Syntax:
extern char *strncpy
(
char *string_1,
const char *string_2,
size_t n
);
Purpose: This function copies the first n characters from string_2 into string_1, if the first n bytes does not encounter a null terminator the result in string_1 will also be unterminated.
|
|
|