gwenhywfar  4.20.2
Modules
Error module

This module does all error handling. More...

Modules

 Simplified Error Codes
 

Verbosity

Composing error messages.

GWENHYWFAR_API int GWEN_Error_ToString (int c, char *buffer, int bsize)
 
GWENHYWFAR_API const char * GWEN_Error_SimpleToString (int i)
 Returns a (very) short string describing the given GWEN error code, or "Unknown error" for unknown codes. More...
 

Detailed Description

This module does all error handling.

Author
Martin Preussmarti.nosp@m.n@li.nosp@m.bchip.nosp@m.card.nosp@m..de

Function Documentation

◆ GWEN_Error_SimpleToString()

GWENHYWFAR_API const char* GWEN_Error_SimpleToString ( int  i)

Returns a (very) short string describing the given GWEN error code, or "Unknown error" for unknown codes.

Parameters
iThe error code
Returns
A fixed static string that must not be free'd

◆ GWEN_Error_ToString()

GWENHYWFAR_API int GWEN_Error_ToString ( int  c,
char *  buffer,
int  bsize 
)

Dumps the string corresponding to the given erro code.

Returns
1 detailed error message created, 0 otherwise
Parameters
cerror code
bufferpointer to a buffer to receive the message
bsizesize of that buffer in bytes