zkStrerror - get error message string
#include "zkString.h"
char *zkStrerror(int errnum);
The zkStrerror() function maps the error number in errnum to a locale-dependent error message string and returns a pointer thereto. The string pointed to must not be modified by the program, but may be overwritten by a subsequent call to zkStrerror() or perror().
The contents of the error message strings returned by zkStrerror() may be determined by the setting of the LC_MESSAGES category in the current locale.
The implementation will behave as if no function defined in this specification calls zkStrerror().
The zkStrerror() function will not change the setting of errno if successful.
Because no return value is reserved to indicate an error, an application wishing to check for error situations should set errno to 0, then call zkStrerror(), then check errno.
This interface need not be reentrant.
Upon successful completion, zkStrerror() returns a pointer to the generated message string. On error errno may be set, but no return value is reserved to indicate an error.
The zkStrerror() function may fail if:
- [EINVAL]
- The value of errnum is not a valid error number.