genders_strerror(3) [x11r4 man page]
GENDERS_ERRNUM(3) LIBGENDERS GENDERS_ERRNUM(3) NAME
genders_errnum, genders_strerror, genders_errormsg, genders_perror - genders error routines SYNOPSIS
#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); DESCRIPTION
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. FILES
/usr/include/genders.h LLNL
August 2003 GENDERS_ERRNUM(3)
Check Out this Related Man Page
GENDERS_HANDLE_DESTROY(3) LIBGENDERS GENDERS_HANDLE_DESTROY(3) NAME
genders_handle_destroy - destroys a genders handle SYNOPSIS
#include <genders.h> int genders_handle_destroy(genders_t handle); DESCRIPTION
genders_handle_destroy() destroys the genders handle pointed to by handle and frees all allocated memory associated with it. RETURN VALUES
On success, 0 is returned. On error, -1 is returned, and an error code is returned in handle. The error code can be retrieved via gen- ders_errnum(3) , and a description of the error code can be retrieved via genders_strerror(3). Error codes are defined in genders.h. ERRORS
GENDERS_ERR_NULLHANDLE The handle parameter is NULL. The genders handle must be created with genders_handle_create(3). GENDERS_ERR_MAGIC handle has an incorrect magic number. handle does not point to a genders handle or handle has already been destroyed. FILES
/usr/include/genders.h SEE ALSO
libgenders(3), genders_handle_create(3), genders_load_data(3), genders_errnum(3), genders_strerror(3) LLNL
August 2003 GENDERS_HANDLE_DESTROY(3)