strerror.3 (646B)
1 .TH strerror 3 2 .SH NAME 3 strerror - look up an error message string 4 .SH SYNOPSIS 5 #include <string.h> 6 7 char *strerror(int errnum) 8 .SH DESCRIPTION 9 The 10 .BR strerror () 11 function maps 12 .I errnum 13 to a locale-specific message string describing the error. 14 Although values of 15 .I errnum 16 typically come from 17 .IR errno , 18 the function accepts any value of type int. 19 .PP 20 The program must not modify the string pointed to by the return value; 21 it may be overwritten by the next call to 22 .BR strerror . 23 .SH RETURN VALUE 24 A pointer to the error message string is returned. 25 The content of the string is locale-specific. 26 .SH STANDARDS 27 ISO/IEC 9899:1999 Section 7.21.6.2