buffer_putulonglong(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_putulonglong β€” bestie edition ✨

okay so this one lives in the Library Functions Manual section, and honestly? it's a lil cutie. let's get into it 🫢


🌸 NAME 🌸

buffer_putulonglong β€” writes a decimal ASCII representation of a signed long integer to a buffer πŸ’–


✨ SYNTAX ✨

#include <libowfat/buffer.h>

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

yes bestie, that's the whole thing. two args, one int coming back at you 🌈


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, buffer_putulonglong is equivalent to passing the result of fmt_ulonglong to buffer_put. that's it. that's the whole vibe. no cap πŸ’…

think of it as: you hand it a buffer b and a value x, and it does the decimal ASCII glow-up on x and drops it right into the buffer. main character energy, minimal effort ✨


πŸŽ€ RETURN VALUE πŸŽ€

  • 0 β€” everything is fine, we ate, no crumbs πŸ‘‘
  • -1 β€” error 😭 and yeah, it sets errno when that happens

πŸ’œ SEE ALSO πŸ’œ


ngl if you're confused, go read fmt_ulonglong(3) first, it's giving prequel πŸ“

okay that's the whole page, mwah πŸ’‹

this was buffer_putulonglong(3) from the Library Functions Manual, and yeah the footer is literally just buffer_putulonglong(3) again β€” iconic of it to sign its own name like that 🌟 bye bestie, go write some buffers πŸ’–βœ¨πŸŽ€