#include <string.h>

char* strncat( char* string1, char* string2, size_t max_len );

This function copies string2 or max_len characters from string2, whichever is shorter to the end of string1. In either case, a null terminator is placed on the end. Returns the address of the first string ( string1 ).

Back to Essential C Functions.

Log in or register to write something here or to contact authors.