stralloc_copym(3)
π NAME π
stralloc_copym β copy string(s) to a stralloc
okay so bestie, this is the one that copies a whole lil squad of strings into a stralloc for you. no cap. π«Ά
β¨ SYNTAX β¨
#include <libowfat/stralloc.h>
int stralloc_copym(stralloc* sa,const char* s, ...);
πΈ DESCRIPTION πΈ
stralloc_copym copies the \0-terminated strings from s... into sa, allocating space if necessary, and returns 1. and like, if there's already data chillin' in sa, it gets cleared first. bye bestie ππ
if it runs out of memory, stralloc_copym returns 0. and at that point? it may already have copied a few of the strings to sa. so like, it's giving partial success but make it an L. π
bestie pls note: when it fails, some strings might already be in there. it does not roll back. that's just how it is. π
β RETURN VALUE β
1β success, slay π0β memory allocation failure, the vibes are off π
π¦ SEE ALSO π¦
and that's the whole thing bestie!! this lil page is stralloc_copym(3) from the Library Functions Manual β go forth and copy those strings, periodt. πβ¨ππ¦πΈπ«Ά
π¦ 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