MiniMIME error functions


Functions

void mm_error_init (void)
void mm_error_setmsg (const char *fmt,...)
char * mm_error_string (void)

Function Documentation

void mm_error_init ( void   ) 

Initializes the global error object

This function initializes the global error object mm_error. This must be done when the library is initialized, and is automatically called from mm_init_library().

void mm_error_setmsg ( const char *  fmt,
  ... 
)

Sets a descriptive error message

Parameters:
fmt The error message as format string
This function is called from the various MiniMIME modules in case an error occured. Should never be called by the user.

char* mm_error_string ( void   ) 

Retrieves the current error message

Returns:
The currently set error message
This function can be used to retrieve a descriptive error message for the current error, much like strerror() function of libc. When this function is called without an error being set, it returns the string "No error". The string returned does not need to be freed, since it is not dynamically allocated by the library.


Generated on Thu Mar 29 17:59:08 2007 for MiniMIME by  doxygen 1.5.1