NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO | RESTRICTIONS
#include <string.h>char *strerror(int errnum);
The strerror function look up the error message string corresponding to an error number. It accepts an error number argument errnum and returns a pointer to the corresponding message string.
If errnum is not a recognized error number, the error message string will contain "Unknown error:" followed by the error number in decimal notation.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
For unknown error numbers, strerror returns its result to a static buffer which could be overwritten by subsequent or concurrent calls.
NAME | SYNOPSIS | DESCRIPTION | ATTRIBUTES | SEE ALSO | RESTRICTIONS