__strcat_chk

Name

__strcat_chk -- concatenate two strings, with buffer overflow checking

Synopsis

#include <string.h>

char * __strcat_chk(char * dest, const char * src, size_t destlen);

Description

The interface __strcat_chk() shall function in the same way as the interface strcat(), except that __strcat_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 destlen specifies the size of the object pointed to by dest.

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