__confstr_chk

Name

__confstr_chk -- get configuration dependent string variables, with buffer overflow checking

Synopsis

#include <unistd.h>

size_t __confstr_chk(int name, char * buf, size_t len, size_t buflen);

Description

The interface __confstr_chk() shall function in the same way as the interface confstr(), except that __confstr_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 buflen specifies the size of the buffer buf. If len exceeds buflen, the function shall abort, and the program calling it shall exit.

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