buffer_putxlong(3)

πŸ“¦
version 0.34 Β· 3 versions
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing

πŸ’– buffer_putxlong(3) β€” Library Functions Manual, but make it cute πŸ’–

okay so bestie, you've found the buffer_putxlong(3) page from the Library Functions Manual. it's a lil one, but she's serving exactly what she needs to serve. ✨

🏷️ NAME

buffer_putxlong β€” write a hexidecimal ASCII representation of an unsigned long integer to buffer

🧾 SYNTAX

#include <libowfat/buffer.h>

int buffer_putxlong(buffer* b,unsigned long x);

πŸ“ DESCRIPTION

buffer_putxlong is similar to passing the result of fmt_xlong to buffer_put. that's it, that's the move: fmt_xlong does its formatting thing, and buffer_put gets the result. buffer_putxlong is literally that combo, wrapped up and ready to go. πŸ’…

πŸ” RETURN VALUE

  • 0 β€” everything is fine, no cap
  • -1 β€” error, and it sets errno 😭

πŸ‘€ SEE ALSO

mwah β€” from the Library Functions Manual with love, this is buffer_putxlong(3); the original footer didn't hand us a separate source/version/date line, so consider this the cute sign-off, bestie πŸŽ€πŸ’–βœ¨