libexplain  1.4.D001
Functions
libexplain/errno_info/internal_strerror.c File Reference
#include <libexplain/ac/string.h>
#include <libexplain/errno_info.h>
#include <libexplain/option.h>

Go to the source code of this file.

Functions

const char * explain_internal_strerror (int n)
void explain_internal_strerror_r (int errnum, char *data, size_t data_size)

Function Documentation

const char* explain_internal_strerror ( int  n)

The explain_internal_strerror method may be used to obtain a string corresponding to an error number. It honors the explain_option_internal_strerror flag.

Returns:
on failure, NULL if the error number os unknown; or on success, a pointer to a string that may not bee altered or free()ed.

Definition at line 27 of file internal_strerror.c.

void explain_internal_strerror_r ( int  errnum,
char *  data,
size_t  data_size 
)

The explain_internal_strerror_r method may be used to obtain a string corresponding to an error number. It honors the explain_option_internal_strerror flag.

Parameters:
errnumThe error number to describe
dataThe array in which to return the result.
data_sizeThe maximum size of thereturned string, including the terminating NUL character.

Definition at line 42 of file internal_strerror.c.