fmt_ulong(3)
okay so bestie, this is the Library Functions Manual page for fmt_ulong(3) and it's literally about turning numbers into text, no cap π
π NAME π
fmt_ulongβ write an ASCII representation of an unsigned long integer
β¨ SYNTAX β¨
#include <libowfat/fmt.h>
size_t fmt_ulong(char *dest,unsigned long source);
πΈ DESCRIPTION πΈ
okay so like, fmt_ulong takes your source (an unsigned long integer, bestie) and writes an ASCII representation of it to dest. We're talking base 10, digits '0' through '9' only β no fancy hex nonsense here. It returns the number of bytes it actually wrote. Slay.
Heads up:fmt_ulongdoes not append\0. So don't go expecting a null terminator, okay? It's giving raw digits, not a C string. π
If dest equals FMT_LEN (i.e. is zero), then fmt_ulong doesn't write anything β instead it returns the number of bytes it would have written. That's your little sneak peek at the length, iconic.
And for convenience, fmt.h defines the integer FMT_ULONG to be big enough to contain every possible fmt_ulong output plus \0. Periodt. π
π SEE ALSO π
and that's the whole page, bestie! the footer just says fmt_ulong(3) (no extra source/version/date drama), so that's the cute sign-off β catch you in the next manpage πβ¨π¦π
π¦ 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