__strncat_chk -- concatenate two strings, with buffer overflow checking


#include <string.h>

char * __strncat_chk(char * s1, const char * s2, size_t n, size_t s1len);


The interface __strncat_chk() shall function in the same way as the interface strncat(), except that __strncat_chk() shall check for buffer overflow before computing a result. If an overflow is anticipated, the function shall abort and the program calling it shall exit.

The parameter s1len specifies the size of the object pointed to by s1.

The __strncat_chk() function is not in the source standard; it is only in the binary standard.