strncat

Concatenate two strings.

char * strncat (char * dest, char * source, size_t max);

Required Header
<string.h>

Return Value

The destination string is returned.

Parameters

dest

  A string

source

  A string

max

  The maximum number of characters to append

Remarks

The strncat function copies at most max characters from source to the end of dest and returns the address of dest. There must be enough space remaining in the dest buffer to prevent unexpected results. A null-terminator is not copied when the max character limit has been reached.

String

See Also    strcat, strcmp, strcpy