gd_error_count(3) GETDATA gd_error_count(3)NAMEgd_error_count — report the number of errors encountered by the GetData
library
SYNOPSIS
#inlcude <getdata.h>
int gd_error_check(DIRFILE *dirfile);
DESCRIPTION
The first time gd_error_count() is called with the DIRFILE object
dirfile, it returns the number of errors encountered by the GetData li‐
brary while operating on the specified DIRFILE object, since the
DIRFILE's creation. Calling this function resets the internal count,
so that subsequent calls to gd_error_count() return the number of er‐
rors encountered only since the previous call to this function, for the
specified DIRFILE.
The errors themselves are not cached by the library. The error status
of the last library call on dirfile (which might be GD_E_OK, indicating
no error) can be obtained by calling gd_error(3).
RETURN VALUE
The gd_error_count() function always returns the number of GetData er‐
rors encountered since the last time it was called, or since the
dirfile was created. This will be zero, if no error has occurred over
the given time.
SEE ALSOgd_error(3), gd_error_string(3)Version 0.8.0 18 August 2011 gd_error_count(3)