buffer_put8long(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_put8long πŸ’…

okay bestie, so this page lives in the Library Functions Manual, and it's all about one lil function named buffer_put8long. pull up a chair, we're doing octal ✨


πŸŽ€ NAME πŸŽ€

buffer_put8long β€” write an octal ASCII representation of an unsigned long integer to buffer

like. it takes a number. it writes it out in octal. that's the whole gig 🫢


🌸 SYNTAX 🌸

first things first, you gotta bring the header along:

#include <libowfat/buffer.h>

and here's the actual call, character for character, no notes:

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

so we've got a buffer* named b and an unsigned long named x, and it hands you back an int. iconic signature, honestly πŸ’…


✨ DESCRIPTION ✨

okay so here's the tea: buffer_put8long is similar to passing the result of fmt_8long to buffer_put.

that's it. that's the description. it's giving "same energy, different entrance" πŸ’– the fmt_8long crowd formats the octal, the buffer_put crowd shoves it into a buffer, and buffer_put8long is the girl who does both in one smooth move 🌈


πŸ‘‘ RETURN VALUE πŸ‘‘

  • 0 β€” everything is fine, we're thriving, no cap πŸŽ‰
  • -1 β€” error, bestie 😭 and it sets errno on the way out, so go check that if you need the deets

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, go say hi:


no cap, this one's tiny and it does exactly one job. read the friends above if you want the bigger picture πŸ’œ

and that's the page!! it's from the Library Functions Manual and it goes by buffer_put8long(3) β€” same name up top, same name at the bottom, we love a consistent queen πŸ‘‘ periodt πŸ’–βœ¨πŸ¦‹