STRERROR - error message associated with number.

(ANSI Standard)


#include <string.h>
msg = strerror(errnum);


int errnum;
is an error number (that is, one of the recognized values that "errno" may take).
char *msg;
is a message explaining the meaning of the given error number.


The "strerror" function returns a string describing the error associated with the given error number. For example,


returns a pointer to a string describing the EDOM error. Programs may not use this pointer to modify the returned string.

See Also:

expl c lib perror

Copyright © 1996, Thinkage Ltd.