Definition | #include <string.h> char *strerror(int errnum);
The returned message text can also contain inserts:
|
Return val. | Pointer to an internal C memory area containing a string with the error message text. |
Note | The area to which |
Example | #include <stdio.h> #include <errno.h> #include <string.h> int main(void) { printf("Error message for EDOM: %s\n", strerror(EDOM)); return 0; } |
See also | perror |