strerror_r

Name

strerror_r -- reentrant version of strerror

Synopsis

#include <string.h>

char * strerror_r(int errnum, char * buf, size_t buflen);

Description

The strerror_r() shall behave as specified in ISO POSIX (2003), except as described below.

Returns String, not Error Value

The strerror_r() function shall return a pointer to the string corresponding to errno. The returned pointer may point within the buffer buf (at most buflen bytes).

Return Value

On success, strerror_r() shall return a pointer to the generated message string (determined by the setting of the LC_MESSAGES category in the current locale). Otherwise, strerror_r() shall return the string corresponding to "Unknown error".