fmt_long(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

πŸ’– fmt_long(3) β€” Library Functions Manual πŸ’–

okay so bestie, welcome to the fmt_long(3) page. it's giving very specific, very useful, and honestly kind of iconic. πŸ’…

πŸŽ€ NAME πŸŽ€

  • fmt_long β€” write an ASCII representation of a long integer. that's the name, that's the vibe, periodt. πŸ’–

✨ SYNTAX ✨

#include <libowfat/fmt.h>

size_t fmt_long(char *dest,long source);

πŸ¦‹ DESCRIPTION πŸ¦‹

fmt_long writes an ASCII representation of source to dest β€” the characters are '-' and '0' through '9', base 10 β€” and it returns the number of bytes written. no cap. ✨

fmt_long does not append \0. no sneaky null terminator, bestie. 😭

If dest equals FMT_LEN (i.e. is zero), fmt_long returns the number of bytes it would have written. so you can vibe-check the length first. πŸ’–

For convenience, fmt.h defines the integer FMT_LONG to be big enough to contain every possible fmt_long output plus \0. iconic. πŸ‘‘

🌈 SEE ALSO 🌈

  • scan_long(3) β€” the other half of the duo, go look. 🫢

πŸŽ€ sign-off: this was fmt_long(3) from the Library Functions Manual. the footer only had fmt_long(3), with no version or date tea, so that's the whole cute send-off. byeeee πŸ’…βœ¨