stralloc_catlong0(3)
stralloc_catlong0 π
okay bestie, gather round, because we're about to talk about stralloc_catlong0(3) from the Library Functions Manual β yes, that's the manual section, she lives in section 3, it's giving "library functions" energy and we're obsessed π
β¨ NAME β¨
stralloc_catlong0 β append an integer to a stralloc π
πΈ SYNTAX πΈ
#include <libowfat/stralloc.h>
int stralloc_catlong0(stralloc* sa, unsigned long int in, size_t n);
like, that's the whole vibe. include the header, call the function, boom. β¨
π¦ DESCRIPTION π¦
okay so here's the tea, fr fr:
stralloc_catlong0 takes in and converts it to a string using fmt_long0, then appends that result to sa, allocating memory as necessary. it's literally just "number goes in, string gets stuck on the end of the stralloc" π«Ά
and if there was a memory allocation failure? she returns0. otherwise1. no cap.
π RETURN VALUE π
1β success, we ate π0β memory allocation failure, not the moment bestie π
π SEE ALSO π
fmt_long0(3) β the icon that does the actual number-to-string glow-up β¨
and that's the whole page!! this was the Library Functions Manual edition of stralloc_catlong0(3) β she's from section 3, she's a library function, and honestly? iconic behavior. mwah πππΈ
π¦ 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