strncat

Concatenates two character strings

#include <strings.h>
char *strncat (
        char *dest,
        const char *src,
        size_t n
)

Arguments

dest Pointer to destination character string
src Pointer to source character string
n Number of characters from source string to concatenate

Return Value

dest, a pointer to the concatenated string is returned.

Explanation

n characters from the string pointed to by src are concatenated to the end of the string pointed to by dest. The concatenated string is returned.