buffer_puterror(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– buffer_puterror(3) πŸ’–

okay bestie, welcome to the libowfat manual, section 3, and today's main character is buffer_puterror β€” she writes an error string to a buffer and then flushes it. slay.


✨ NAME ✨

buffer_puterror β€” write error string to buffer and flush 🫢


🌸 SYNTAX 🌸

#include <libowfat/buffer.h>

int buffer_puterror(buffer* b);

like, that's the whole vibe. one include, one function, one buffer pointer. iconic.


πŸ¦‹ DESCRIPTION πŸ¦‹

so buffer_puterror is literally equivalent to calling buffer_puterror2 with errno. that's it. that's the whole tea. πŸ“

ngl, it's giving "little sister function who just forwards your call to the bigger function with errno already filled in for you." no cap.


πŸ‘‘ RETURN VALUE πŸ‘‘

  • 0 β€” everything is fine, we ate, no crumbs. ✨
  • -1 β€” error, and bestie she sets errno while she's at it. 😭

πŸ”₯ SEE ALSO πŸ”₯

go read those too, iykyk πŸ’…


and that's the page!! this whole thing lives in the <strong>Library Functions Manual</strong>, and it signs off as buffer_puterror(3) β€” yeah the footer is literally just her own name again, she's that self-obsessed and honestly? valid. πŸ’œ