AUPARSE_GET_NUM_FIELDS(3)
β¨ AUPARSE_GET_NUM_FIELDS β¨
okay bestie, welcome to the Linux Audit API corner of the manual β this is page 3 of the auparse saga, and today's main character is auparse_get_num_fields. π
πΈ NAME πΈ
auparse_get_num_fields β get the number of fields, fr fr π
π¦ SYNOPSIS π¦
#include <auparse.h>
unsigned int auparse_get_num_fields(const auparse_state_t *au);"
π DESCRIPTION π
so like. auparse_get_num_fields gets the number of fields in the current record of the current event. that's it, that's the whole vibe. it's giving "count the things, hand you the number" and honestly? iconic. π«Ά
no cap, that's literally the entire job. you hand it your auparse state, it tells you how many fields are sitting in the record you're currently parked on. lowkey the most useful little helper ever. β¨
π RETURN VALUE π
- Returns
0if an error occurs π - otherwise, it returns the number of fields π
so yeah β if you get 0 back, that's not "zero fields bestie, slay", that's an error. keep that in mind. π
π SEE ALSO π
auparse_next_record(3)β go read it, iykyk π
β AUTHOR β
Steve Grubb π (we love a legend)
shoutout to Red Hat for putting this out there, and this lil page is dated Feb 2007 β vintage but still eating. π
mwah, go count some fields bestie π β¨
π¦ 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