Syntax
#include <string.h>
char *strncat(char *str1, const char *str2, size_t n);
Arguments
str1 pointer to the character string that will receive the appended characters
str2 pointer to the character string that will give the appended characters
n number of characters from str2 that will be concatenated onto the end of str2
Return Value
The pointer to str1
Description
It appends (concatenates) n characters (excluding the NULL terminating character) from str2 onto the end of str1.