STRNCAT - append part of a string to another.

(ANSI Standard)

Usage:

#include <string.h>
ptr = strncat( s1, s2, N );

Where:

char *s1;
points to a string terminated by the usual '\0'.
const char *s2;
points to a string whose characters will be appended to the end of "s1".
size_t N;
is the maximum number of characters from string "s2" that should be appended to "s1".
char *ptr;
points to the new string ("s1").

Description:

"strncat" appends at most N characters from the string "s2" to the end of the string "s1". If string "s2" contains less than N characters, "strncat" will stop when it encounters the terminating '\0'.

See Also:

expl c lib strcat

Copyright © 1996, Thinkage Ltd.