Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

strerror(3) OSS Library Calls Reference Manual
NAME
strerror - Accesses message explaining function error
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
SYNOPSIS
#include <string.h>
char *strerror(
int errnum);
PARAMETERS
errnum Specifies an error-number value.
DESCRIPTION
The strerror( ) function maps the error number specified by the errnum parameter to an error
message string, and returns a pointer to the string. The string pointed to by the return value is not
modified by the program, but may be overwritten by a subsequent call to this function. The
implementation behaves as though no other function calls the strerror( ) function.
NOTES
The strerror( ) function only supports the C/POSIX locale.
RETURN VALUES
Upon successful completion, the strerror() function returns a pointer to the generated message
string. If the error number is not valid, errno is set to [EINVAL].
ERRORS
If the following condition occurs, these functions set errno to the corresponding value.
[EINVAL] The errnum parameter is an invalid error number.
RELATED INFORMATION
Functions: perror(3).
6142 Hewlett-Packard Company 527187-017