MicrOS
strerror.c File Reference
#include "../string.h"

Functions

char * strerror (int errnum)
 Get pointer to error message string. More...
 

Variables

char * error_messages []
 

Function Documentation

◆ strerror()

char* strerror ( int  errnum)

Get pointer to error message string.

Interprets the value of errnum, generating a string with a message that describes the error condition as if set to errno by a function of the library.

Parameters
errnumError number.
Returns
A pointer to the error string describing error errnum.

Variable Documentation

◆ error_messages

char* error_messages[]
Initial value:
=
{
""
}