Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)

Guardian Native C Library Calls (s) strerror(3)
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 native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <string.h>
char *strerror(
int errnum);
PARAMETERS
errnum Species an error-number value.
DESCRIPTION
The strerror() function maps the error number specied 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
modied 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).
527192-005 Hewlett-Packard Company 655