__xpg_strerror_r -- return string describing error number


#include <string.h>

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


The __xpg_strerror_r() function shall map the error number in errnum to a locale-dependent error message string and shall return the string in the buffer pointed to by strerrbuf, with length buflen, as described in POSIX 1003.1-2008 (ISO/IEC 9945-2009) strerror_r().

This function is not in the source standard, it is only in the binary standard.

Return Value

See POSIX 1003.1-2008 (ISO/IEC 9945-2009).