AUPARSE_NEXT_RECORD(3)
π NAME π
auparse_next_record β move record cursor, bestie β¨
π SYNOPSIS π
#include <auparse.h>
int auparse_next_record(auparse_state_t *au);"
πΈ DESCRIPTION πΈ
okay so picture this: the library has these internal cursors, right? and auparse_next_record is literally just the glow-up move that slides those cursors over to point at the next record of the current event. that's it. that's the whole job. slay π
but bestie. listen. π«Ά
do NOT call this function from a feed interface callback function. the way that will deadlock the code π like, full stop, everything just sits there. not cute, not iconic, absolutely not the vibe.
so if you're in that scenario (iykyk), the move is: check how many records are in the current event with auparse_get_num_records first, and only call this if there are actually more records left. vibe check before you commit, periodt β¨
π₯ RETURN VALUE π₯
-1β something went wrong, an error happened π0β no more records in the current event, that's a wrap π¬1β success!! we ate π
π¦ SEE ALSO π¦
π AUTHOR π
Steve Grubb π (giving main character energy fr fr)
and that's the whole page, bestie β this came out of Red Hat back in Feb 2007, so it's been serving correct cursor-moving realness for literal decades πβ¨ no cap.
π¦ where this page comes from
- alpine 3.23: audit-doc 4.1.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: audit-doc 4.1.2-r6 Β· LGPL-2.1-or-later
- arch rolling: audit 4.2.1-1 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- centos-stream 10: audit-libs-devel 4.2.1-3.el10 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.1.1-2.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 43: audit-libs-devel 4.2.1-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.1.4-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- fedora 44: audit-libs-devel 4.2.1-1.fc44 Β· LGPL-2.0-or-later
- nixpkgs unstable: audit 4.2.1
- ubuntu resolute: libauparse-dev 1:4.1.2-1build1 Β· GPL-2.0-only
- ubuntu resolute: libauparse-dev 1:4.1.2-1ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libauparse-dev 1:4.1.2-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms