Next: strncmp, Previous: strncasecmp, Up: Strings
strncat
—concatenate strings#include <string.h> char *strncat(char *restrict dst, const char *restrict src, size_t length);
Description
strncat
appends not more than length characters from
the string pointed to by src (including the terminating
null character) to the end of the string pointed to by
dst. The initial character of src overwrites the null
character at the end of dst. A terminating null character
is always appended to the result
Warnings
n + 1
.
Returns
Portability
strncat
is ANSI C.
strncat
requires no supporting OS subroutines.