welibc
A clear, secure, and well documented standard C library
Functions
strerror.c File Reference

Defines the strerror function. More...

#include <errno.h>
#include <string.h>
Include dependency graph for strerror.c:

Go to the source code of this file.

Functions

char * strerror (int errnum)
 Maps an error number to an error message string. More...
 

Detailed Description

Defines the strerror function.

Definition in file strerror.c.

Function Documentation

◆ strerror()

char* strerror ( int  errnum)

Maps an error number to an error message string.

Parameters
errnumError number being mapped

The strerror function maps the error number in errnum to an error message string.

The implementation shall behave as if no library function calls the strerror function.

Returns
A pointer to a string representation of the error number

Definition at line 54 of file strerror.c.

References EDOM, ERANGE, and NULL.