man genders_errors (Fonctions bibliothèques) - genders_errnum, genders_strerror, genders_errormsg, genders_perror - get information about recent genders errors

NAME

genders_errnum, genders_strerror, genders_errormsg, genders_perror - get information about recent genders errors

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 string describing the error code errnum.

genders_errormsg() returns a string describing the error code stored in handle. It 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.

In general, genders_errnum(), genders_strerror(), genders_errormsg(), and genders_perror() should be used immediately after a genders C API function returns an error. Thus, these functions can return information about the most recent error that has occurred.

RETURN VALUES

genders_errnum() returns the error code stored in handle.

genders_strerror() and genders_errormsg(), return a pointer to a string describing the error code stored in handle.

FILES

/usr/include/genders.h

SEE ALSO

CETTE PAGE DOCUMENTE AUSSI :