buffer_putlonglong(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_putlonglong(3) πŸ’–

okay bestie, gather round β€” this is a page from the Library Functions Manual, and today's main character is buffer_putlonglong, a lil function that lives in libowfat. she's tiny, she's useful, she's giving quiet competence. πŸŽ€


✨ NAME ✨

buffer_putlonglong β€” write a decimal ASCII representation of a signed long integer to buffer πŸ¦‹


🌸 SYNTAX 🌸

#include <libowfat/buffer.h>

int buffer_putlonglong(buffer* b,signed long long x);

two arguments, one int coming back, no drama. πŸ’…


🫢 DESCRIPTION 🫢

So like. buffer_putlonglong is equivalent to passing the result of fmt_longlong to buffer_put. that's it. that's the whole vibe. ✨

you hand her a signed long long and she turns it into decimal ASCII text and drops it into the buffer. no cap, she's just out here doing the formatting-for-you so you don't have to. 🌈


😭 RETURN VALUE 😭

  • 0 β€” everything is fine, we ate, we're slaying, no notes πŸ’–
  • -1 β€” error bestie, and she's setting errno on her way out πŸ™ˆ
fr fr, if you get -1 go check errno immediately, don't just stand there. πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, they're all in the group chat together. 🧚


and that's the whole page, bestie!! this little cutie is buffer_putlonglong(3) from the Library Functions Manual β€” yes, the footer literally just says her name again, she's that iconic, no version number, no date, just vibes. πŸŽ€βœ¨πŸ’œ