stralloc_catm(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

okay so bestie πŸ’– welcome to the manual page for stralloc_catm(3) from the Library Functions Manual. she appends strings to a stralloc and she's lowkey iconic. periodt ✨

🌸 NAME 🌸

stralloc_catm β€” append string(s) to a stralloc

πŸ“œ SYNTAX πŸ“œ

#include <libowfat/stralloc.h>

int stralloc_catm(stralloc* sa,const char* s, ...);

✨ DESCRIPTION ✨

so here's the vibe: stralloc_catm appends the \0-terminated strings from s... to the end of the string stored in sa, allocating space if necessary, and returns 1. 🫢 if sa is unallocated, stralloc_catm is literally the same as stralloc_copym.

if it runs out of memory, stralloc_catm returns 0. 😭 and at that point, it may already have copied a few of the strings to sa. so yeah, she might have done some of the work before things went sideways. no cap.

πŸŽ€ RETURN VALUE πŸŽ€

  • 1 β€” success, she ate πŸ’…
  • 0 β€” memory allocation failure 😭

πŸ‘‘ SEE ALSO πŸ‘‘

stralloc_copym(3)


and that's the whole page, bestie. signing off from the Library Functions Manual with the footer tea: stralloc_catm(3) πŸ’– bye πŸ‘‘