STRNCAT(3) Library Functions Manual STRNCAT(3)
NAME
strncat —
concatenate part of two strings
SYNOPSIS
#include <string.h> char *strncat(char *s1, const char *s2, size_t n);
DESCRIPTION
The strncat() function appends not more than n bytes (a null byte and bytes that follow it are not appended) from the array pointed to by s2 to the end of the string pointed to by s1 . The initial byte of s2 overwrites the null byte at the end of s1 . A terminating null byte is always appended to the result. If copying takes place between objects that overlap, the behaviour is undefined.
RETURN VALUE
The strncat() function returns s1 ; no return value is reserved to indicate an error.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
strcat(3) , <string.h> .
DERIVATION
Derived from Issue 1 of the SVID.
February 1997 posix.fail