strerror
From cppreference.com
Defined in header <string.h>
|
||
char* strerror( int errnum );
|
||
Returns text version of the error code errnum. errnum is usually acquired from the errno variable, however the function accepts any value of type int. The message is locale-specific.
The returned byte string must not be modified by the program, but may be overwritten by a subsequent call to the strerror function.
Contents |
[edit] Parameters
errnum | - | integral value referring to a error code |
[edit] Return value
Pointer to a null-terminated byte string corresponding to the error code errnum.
[edit] Example
This section is incomplete Reason: no example |