1
2
3
4
5
6
7
8
9gd_error_count(3)                   GETDATA                  gd_error_count(3)
10
11
12

NAME

14       gd_error_count — report the number of errors encountered by the GetData
15       library
16
17

SYNOPSIS

19       #inlcude <getdata.h>
20
21       int gd_error_count(DIRFILE *dirfile);
22
23

DESCRIPTION

25       The first time gd_error_count()  is  called  with  the  DIRFILE  object
26       dirfile, it returns the number of errors encountered by the GetData li‐
27       brary while operating on dirfile  since  its  creation.   Calling  this
28       function  resets  the  internal  count,  so  that  subsequent  calls to
29       gd_error_count() return the number of errors encountered only since the
30       previous call to this function, for the specified DIRFILE.
31
32       The  errors themselves are not cached by the library.  The error status
33       of the last library call on dirfile (which might be GD_E_OK, indicating
34       no error) can be obtained by calling gd_error(3).
35
36

RETURN VALUE

38       The  gd_error_count() function always returns the number of GetData er‐
39       rors encountered since the last  time  it  was  called,  or  since  the
40       dirfile  was  created. This will be zero, if no error has occurred over
41       the given time.
42
43

HISTORY

45       The gd_error_count() function appeared in GetData-0.8.0.
46
47

SEE ALSO

49       gd_error(3), gd_error_string(3)
50
51
52
53Version 0.10.0                 25 December 2016              gd_error_count(3)
Impressum