fmt_strm_malloc(3)
π fmt_strm_malloc β bestie edition π
okay so this is a page from the Library Functions Manual about fmt_strm_malloc, and honestly? she's a lil workhorse and we're gonna give her main character energy. let's go π«Ά
β¨ NAME β¨
fmt_strm_malloc β write multiple ASCII strings, all at once, no cap π
β¨ SYNTAX β¨
#include <stdlib.h> #include <libowfat/fmt.h>
char* fmt_strm_malloc(const char *source, ...);
yes bestie, that's a variadic function, she takes as many string args as your heart desires π
β¨ DESCRIPTION β¨
fmt_strm_malloc takes source and all the following function arguments, copies all leading nonzero bytes from them into a freshly allocated heap buffer, and hands you back a pointer to that buffer. it's giving "here's your string, babe, made it fresh just for you" π
the buffer was allocated with malloc, so you need to call free on it when you're done. like, for real for real. don't leave her hanging, that's a memory leak and we don't do those in this house π
unlike fmt_strm, fmt_strm_malloc does append \0. so she's actually null-terminated. iconic behaviour honestly β
β¨ SEE ALSO β¨
go read those too, they're all part of the same lil friend group π¦
and that's the whole page!! this footer is just fmt_strm_malloc(3) all over again, from the Library Functions Manual β no date or version drama to report, she's timeless π mwah, go call free on your buffer, ily, bye!! ππΈ
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· 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 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