NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ATTRIBUTES | SEE ALSO | RESTRICTIONS
#include <string.h>char *strerror(int errnum);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
The strerror() function looks 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 can be overwritten by subsequent or concurrent calls.
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | ATTRIBUTES | SEE ALSO | RESTRICTIONS