fmt_long(3)
π 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 wasfmt_long(3)from the Library Functions Manual. the footer only hadfmt_long(3), with no version or date tea, so that's the whole cute send-off. byeeee π β¨
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms