stralloc_cat(3)
β¨ NAME β¨
okay bestie, welcome to stralloc_cat(3) from the Library Functions Manual π«Ά this page is all about appending data to a stralloc π. stralloc_cat β append data to a stralloc. periodt π
.
π¦ SYNTAX π¦
the include and the signature, exactly as written: πΈ
#include <libowfat/stralloc.h>
int stralloc_cat(stralloc* sato,const stralloc* safrom);
π DESCRIPTION π
So stralloc_cat appends the string stored in safrom to sa. It is the same as stralloc_catb(&sato, safrom.s, safrom.len). safrom must already be allocated β like, already got its memory, no last-minute glow-up. π
The data that sa previously contained is overwritten and truncated. yes, that's the text, bestie β overwritten and truncated. no cap. π
π₯ RETURN VALUE π₯
Returns 1 for success β slay. Returns 0 on memory allocation failure β crying in the club. π
π SEE ALSO π
stralloc_catb(3)β go read this next, bestie. π
signing off from the Library Functions Manual π β source/version: Library Functions Manual (no version shown); date: not shown; page: stralloc_cat(3). bye bestie π«Ά π§
π¦ 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