C strerror()

The strerror() function returns a pointer to an implementation-defined string associated with the value of errnum. Under no circumstances should you modify the string.

strerror() Syntax

Following is the syntax of the strerror() function :

char *strerror(int errnum);

strerror() Example

Following code fragment prints an implementation-defined error message on the screen :


C Online Test

« Previous Chapter Next Function »

Like/Share Us on Facebook 😋