252#define ERRLEN (sizeof(struct wcserr)/sizeof(int))
266 const char *file,
int line_no,
const char *format, ...);
271#define WCSERR_SET(status) err, status, function, __FILE__, __LINE__
Error message handling.
Definition wcserr.h:243
int line_no
Definition wcserr.h:245
const char * file
Definition wcserr.h:247
char * msg
Definition wcserr.h:248
const char * function
Definition wcserr.h:246
int status
Definition wcserr.h:244
int wcserr_enable(int enable)
Enable/disable error messaging.
int wcserr_prt(const struct wcserr *err, const char *prefix)
Print a wcserr struct.
int wcserr_clear(struct wcserr **err)
Clear a wcserr struct.
int wcserr_set(struct wcserr **err, int status, const char *function, const char *file, int line_no, const char *format,...)
Fill in the contents of an error object.
int wcserr_copy(const struct wcserr *src, struct wcserr *dst)
Copy an error object.
int wcserr_size(const struct wcserr *err, int sizes[2])
Compute the size of a wcserr struct.