STRNCAT(3) NEWLIB STRNCAT(3)NAME
6.29 `strncat'--concatenate strings
SYNOPSIS
#include <string.h>
char *strncat(char *DST, const char *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*
Note that a null is always appended, so that if the copy is limited by
the LENGTH argument, the number of characters appended to DST is `n +
1'.
RETURNS
This function returns the initial value of DST
PORTABILITY
`strncat' is ANSI C.
`strncat' requires no supporting OS subroutines.
SEE ALSOstrncat is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 STRNCAT(3)