Your company here, and a link to your site. Click to find out more.

genders_errnum - Man Page

genders error routines


#include <genders.h>

int genders_errnum(genders_t handle);

char *genders_strerror(int errnum);

char *genders_errormsg(genders_t handle);

void genders_perror(genders_t handle, const char *msg);


genders_errnum() returns the error code stored in handle.

genders_strerror() returns a pointer to a string describing the error code errnum.

Generally, an error code is retrieved by genders_errnum() and then passed to genders_strerror().

genders_errormsg() returns a pointer to a string describing the error stored in handle.  It is logically equivalent to:

char *genders_strerror(genders_errnum(genders_t handle));

genders_perror() is similar to perror(3). It produces a message on standard error output, describing the error stored in handle.  If msg is not NULL, the string pointed to by msg, a colon, and a blank are printed before the error message.



Referenced By

genders_getattr(3), genders_getattr_all(3), genders_getnodename(3), genders_getnodes(3), genders_getnumnodes(3), genders_handle_destroy(3), genders_index_attrvals(3), genders_isnode(3), genders_load_data(3), genders_nodelist_create(3), genders_parse(3), genders_query(3), genders_testattr(3), genders_testquery(3), libgenders(3).

The man pages genders_errormsg(3), genders_perror(3) and genders_strerror(3) are aliases of genders_errnum(3).