Developer's Daily | Unix by Example |
main | java | perl | unix | dev directory | web log |
strerror ? return string describing error code |
#include <string.h> char *strerror(int errnum); |
The strerror() function returns a string describing the error code passed in the argument errnum. The string can only be used until the next call to strerror(). |
The strerror() function returns the appropriate description string, or an unknown error message if the error code is unknown. |
SVID 3, POSIX, BSD 4.3, ISO 9899 |
errno(3), perror(3), strsignal(3) |