AUPARSE_GET_NUM_RECORDS(3)

πŸ“¦
version 4.2.1 Β· 3 versions
, in alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

✨ AUPARSE_GET_NUM_RECORDS ✨

okay bestie, pull up a chair πŸ’– this one lives in the Linux Audit API corner of the manual pages, section 3 (that's the library-functions section, iykyk), and it's genuinely one of the cutest little calls you'll ever meet. it's called auparse_get_num_records, and yes, it does exactly what the name is giving.


🌸 NAME 🌸

auparse_get_num_records β€” get the number of records πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <auparse.h>

unsigned int auparse_get_num_records(const auparse_state_t *au);"

πŸ’… DESCRIPTION πŸ’…

so here's the vibe: auparse_get_num_records</p> gets the number of records in the current event. that's it. that's the whole thing. no cap. 🫢

you hand it your auparse state, it tells you how many records are hanging out in the event you're currently looking at. it's giving "headcount for the party" energy. πŸŽ‰


πŸ‘‘ RETURN VALUE πŸ‘‘

  • returns 0 if an error occurs 😭
  • otherwise, it returns the number of records ✨
fr fr, 0 means something went wrong, not "zero records". keep that in mind before you start celebrating a very empty event. πŸ’€

🌈 SEE ALSO 🌈


⭐ AUTHOR ⭐

Steve Grubb β€” legend behavior, honestly πŸ‘‘


and that's the whole page, bestie!! this one shipped from Red Hat all the way back in Feb 2007 (yes, ancient, but she still slays πŸ’…), and the page itself is AUPARSE_GET_NUM_RECORDS(3). go count some records, you've got this πŸ¦‹βœ¨πŸ“