gd_error_count(3)
β¨ gd_error_count(3) β the GetData manual, bestie edition β¨
okay so we're in the GETDATA section of the manual, and today's topic is gd_error_count β the little counter that tells you how many oopsies the GetData library has been collecting on your behalf π
πΈ NAME πΈ
gd_error_count β reports the number of errors encountered by the GetData library π
π¦ SYNOPSIS π¦
#inlcude <getdata.h>
int gd_error_count(DIRFILE *dirfile);
(yes bestie, that #inlcude is exactly what the page says, no cap β copy it character for character or the compiler will simply not know you π«Ά)
π DESCRIPTION π
so here's the tea βοΈ The first time you call gd_error_count() with the DIRFILE object dirfile, it hands you back the number of errors the GetData library ran into while it was operating on dirfile since dirfile was created. iconic. β¨
but β and this is the plot twist β calling this function resets the internal count. so every call after that returns only the errors encountered since the previous call to this function, for that specific DIRFILE. it's giving "what have you done for me lately" energy π
important: the errors themselves are not cached by the library. like, the count is real but the receipts are gone. if you want the actual error status of the last library call ondirfileβ which might beGD_E_OK, meaning no error at all, slay β you go callgd_error(3)instead. π
π RETURN VALUE π
gd_error_count() always returns the number of GetData errors encountered since the last time it was called, or since the dirfile was created. so basically the count since the last vibe check. π
and if no error has happened over that window? it returns zero. zero errors, zero stress, main character behaviour. π§
β HISTORY β
gd_error_count() first appeared in GetData-0.8.0. a classic, an icon, a legend. π
π SEE ALSO π
and that's the whole page, bestie π«Ά this was Version 0.10.0, dated 25 December 2016 β go forth and count your errors, but like, in a cute way π β¨
π¦ where this page comes from
- debian bookworm: libgetdata-doc 0.11.0-6
- debian trixie: libgetdata-doc 0.11.0-15
- fedora 43: getdata-devel 0.11.0-13.fc43 Β· GPL-2.0-or-later
- fedora 43: getdata-devel 0.11.0-13.fc43 Β· GPL-2.0-or-later
- fedora 44: getdata-devel 0.11.0-14.fc44 Β· GPL-2.0-or-later
- fedora 44: getdata-devel 0.11.0-14.fc44 Β· GPL-2.0-or-later
- nixos 26.05: getdata 0.11.0
- nixpkgs unstable: getdata 0.11.0
- ubuntu jammy: libgetdata-doc 0.11.0-3ubuntu1
- ubuntu noble: libgetdata-doc 0.11.0-13
- ubuntu questing: libgetdata-doc 0.11.0-15
- ubuntu resolute: libgetdata-doc 0.11.0-17build1
- ubuntu stonking: libgetdata-doc 0.11.0-17build2
- Copyright (C) 2016 D. V. Wiebe
- Copyright (C) 2011, 2013, 2016 D.V. Wiebe
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms