strncat function — Concatenates strings
char* strncat(char* dst, const char* src, size_t n)
The strncat
function
concatenates src
onto the end of
dst
, overwriting the null byte at
the end of dst
. At most, n
characters are copied from src
. A terminating null character is
always appended to the end of dst
. The caller must ensure that dst
points to a region of memory that is
large enough to hold the concatenated result, including the null
terminator. The return value is dst
.