XY_err | XY_errcode (void) |
Gets the most recent error code. | |
const char * | XY_errstr (void) |
Gets a string representing the most recent error code. | |
void | XY_print_options (FILE *fi, XY_options opts) |
Dumps options in opts to the file stream (eg, stderr or an opened logfile). | |
Enumerations | |
enum | XY_err { XY_ERR_NONE, XY_ERR_OPTION_BAD, XY_ERR_OPTION_UNKNOWN, XY_ERR_FILE_CANT_OPEN, XY_ERR_MEM_CANT_ALLOC, XY_ERR_INIT_VIDEO, XY_ERR_INIT_DISPLAY, XY_ERR_INIT_UNSUPPORTED_BPP, XY_ERR_BITMAP_CANT_DECODE, XY_ERR_BITMAP_CANT_CONVERT, XY_ERR_BITMAP_CANT_SCALE, XY_ERR_LINES_INVALID, NUM_XY_ERRS } |
enum XY_err |
XY_err XY_errcode | ( | void | ) |
Gets the most recent error code.
const char* XY_errstr | ( | void | ) |
Gets a string representing the most recent error code.
void XY_print_options | ( | FILE * | fi, | |
XY_options | opts | |||
) |
Dumps options in opts to the file stream (eg, stderr or an opened logfile).
fi | is a file pointer to output to (stderr or stdout could be used, or a file that you've opened for write or append using fopen()) | |
opts | is a pointer to an options structure that has been filled. |