stralloc_cat(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 πŸ‘‘

signing off from the Library Functions Manual πŸ’– β€” source/version: Library Functions Manual (no version shown); date: not shown; page: stralloc_cat(3). bye bestie 🫢 🧚