HP C/iX Library Reference Manual (30026-90004)
338 Chapter5
HP C/iX Library Function Descriptions
strerror
strerror
Maps an error number to a message string.
Syntax
#include <string.h>
char *strerror(int
errnum
);
Parameters
errnum
An error number.
Return Values
x A pointer to the error message.
NULL A null pointer is returned if there is no matching error message.
Description
The strerror function returns a pointer to an error message that corresponds with the
speciļ¬ed error number. Do not modify the value of the error message referenced by the
returned pointer.
See Also
ANSI C 4.11.6.2