STRERROR - error message associated with number.

(ANSI Standard)

Usage:

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

Where:

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.

Description:

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.

See Also:

expl c lib perror

Copyright © 1996, Thinkage Ltd.