(ANSI Standard)
#include <string.h> msg = strerror(errnum);
The "strerror" function returns a string describing the error associated with the given error number. For example,
strerror(EDOM)
returns a pointer to a string describing the EDOM error. Programs may not use this pointer to modify the returned string.
Copyright © 1996, Thinkage Ltd.