1GENDERS_ERRNUM(3) LIBGENDERS GENDERS_ERRNUM(3)
2
3
4
6 genders_errnum, genders_strerror, genders_errormsg, genders_perror -
7 genders error routines
8
10 #include <genders.h>
11
12 int genders_errnum(genders_t handle);
13
14 char *genders_strerror(int errnum);
15
16 char *genders_errormsg(genders_t handle);
17
18 void genders_perror(genders_t handle, const char *msg);
19
21 genders_errnum() returns the error code stored in handle.
22
23 genders_strerror() returns a pointer to a string describing the error
24 code errnum.
25
26 Generally, an error code is retrieved by genders_errnum() and then
27 passed to genders_strerror().
28
29 genders_errormsg() returns a pointer to a string describing the error
30 stored in handle. It is logically equivalent to:
31
32 char *genders_strerror(genders_errnum(genders_t handle));
33
34 genders_perror() is similar to perror(3). It produces a message on
35 standard error output, describing the error stored in handle. If msg
36 is not NULL, the string pointed to by msg, a colon, and a blank are
37 printed before the error message.
38
40 /usr/include/genders.h
41
42
43
44LLNL August 2003 GENDERS_ERRNUM(3)