Maps an error number to an error message string.
Standard C Library (libc.a)
#include <string.h>
char *strerror ( ErrorNumber)
int ErrorNumber;
The strerror subroutine maps the error number in the ErrorNumber parameter to the error message string. The strerror subroutine retrieves an error message based on the current value of the LC_MESSAGES category. If the specified message catalog cannot be opened, the default message is returned. The returned message does not contain a new line ("\n").
Item | Description |
---|---|
ErrorNumber | Specifies the error number to be associated with the error message. |
The strerror subroutine returns a pointer to the error message.