AUPARSE_GET_FIELD_INT(3)

πŸ“¦
version 4.2.1 Β· 2 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_INT πŸ’–

okay so bestie, welcome to auparse_get_field_int β€” it's a section 3 situation, living happily in the Linux Audit API family of manual pages. and ngl? she's a tiny little function with a very specific job and she does it flawlessly. πŸŽ€


✨ NAME ✨

auparse_get_field_int β€” get current field's value as an int

🌸 SYNOPSIS 🌸

#include <auparse.h>

int auparse_get_field_int(auparse_state_t *au);"

πŸ’… DESCRIPTION πŸ’…

so here's the tea, bestie. auparse_get_field_int gives you access to the value as an int β€” that's it, that's the whole gig. 🫢

but which value, you ask? okay so follow the chain with me:

  • the current field
  • of the current record
  • in the current event

it's giving nested main character energy fr fr. three layers of "current" and you get the int at the very bottom of that little stack. ✨

πŸ”₯ RETURN VALUE πŸ”₯

  • returns -1 if there's an error, and errno gets set appropriately πŸ’€
  • otherwise returns the value, and that's your sign that errno is zero πŸ‘‘
so like… yes, the success check really is errno being zero. that's the vibe check. don't skip it, bestie, or you'll be out here reading -1 like it's a real number 😭

πŸ¦‹ SEE ALSO πŸ¦‹

πŸ‘‘ AUTHOR πŸ‘‘

Steve Grubb


and that's a wrap on this one, bestie πŸŽ€ big love to Red Hat for shipping this page back in Feb 2007 β€” vintage, iconic, still serving βœ¨πŸ’– no cap, periodt. 🌈