Guardian C Library Calls Reference Manual

strerror
3-198 128833Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
strerror
The strerror function retrieves the textual error message corresponding to one of the
predefined values that errno can acquire.
errval
is the error value whose corresponding textual message strerror retrieves. For a list
of the predefined error values, refer to “<errnoh>” on page 2-2.
Return Value
points to a string containing the textual error message corresponding to errval.
Usage Guidelines
The strerror function returns a pointer to static data within the C run-time library.
Consequently, you should not modify the string that this pointer points to.
#include <stringh>
char *strerror(int errval);