216 #ifndef WCSLIB_WCSERR 
  217 #define WCSLIB_WCSERR 
  223 #define WCSERR_MSG_LENGTH 160 
  228   const char *
function;         
 
  234 #define ERRLEN (sizeof(struct wcserr)/sizeof(int)) 
  246   const char *file, 
int line_no, 
const char *format, ...);
 
  251 #define WCSERR_SET(status) err, status, function, __FILE__, __LINE__ 
int wcserr_enable(int enable)
Enable/disable error messaging. 
Error message handling. 
Definition: wcserr.h:225
int wcserr_prt(const struct wcserr *err, const char *prefix)
Print a wcserr struct. 
int wcserr_copy(const struct wcserr *src, struct wcserr *dst)
Copy an error object. 
const char * file
Definition: wcserr.h:229
char msg[WCSERR_MSG_LENGTH]
Definition: wcserr.h:230
int line_no
Definition: wcserr.h:227
int status
Definition: wcserr.h:226
#define WCSERR_MSG_LENGTH
Definition: wcserr.h:223
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_clear(struct wcserr **err)
Clear a wcserr struct.