AUPARSE_GET_FIELD_STR(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_FIELD_STR πŸ’–

okay bestie, so this one is a <pink>Linux Audit API</pink> page, section 3 of the manual β€” it's a library call, not a command you run in your shell, iykyk 🫢


✨ NAME ✨

auparse_get_field_str β€” grab the value of the field you're currently sitting on 🌸


πŸŽ€ SYNOPSIS πŸŽ€

#include <auparse.h>

const char * auparse_get_field_str(const auparse_state_t *au);"
yes the stray " at the end is literally in the original, we don't fix it, we don't touch it, it's part of the vibe πŸ’… (character for character, no cap)

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: auparse_get_field_str is your little key to the value living inside the current field β€” and that field belongs to the current record, which is chillin' inside the current event. it's giving very much "you are here, and here is the value" energy. ✨

like, the whole nesting situation is: event β†’ record β†’ field β†’ value. and this function hands you the value at the bottom of that stack. iconic. πŸ‘‘


πŸ’œ RETURN VALUE πŸ’œ

  • if something goes wrong: it returns NULL 😭
  • otherwise: a pointer to the field's value πŸŽ‰
bestie, NULL means error. always check. do not skip the vibe check. πŸ™ˆ

🌈 SEE ALSO 🌈


🌸 AUTHOR 🌸

Steve Grubb 🫢


Red Hat came through with this one back in Feb 2007, and yeah β€” that's the source, the version, and the date, all wrapped up in a cute little sign-off. slay. πŸ’…βœ¨πŸŽ€