stralloc_catb(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 ✨

omg hey bestie πŸ’– welcome to the stralloc_catb(3) page from the Library Functions Manual β€” yes, we're doing this, and it's giving useful.

stralloc_catb β€” append data to a stralloc. that's the whole vibe. no cap. πŸŽ€


πŸ› οΈ SYNTAX πŸ› οΈ

#include <libowfat/stralloc.h>

int stralloc_catb(stralloc* sa,const char* buf,size_t len);

πŸ’– DESCRIPTION πŸ’–

okay so stralloc_catb adds the string buf[0], buf[1], ... buf[len-1] to the end of the string stored in sa, allocating space if necessary, and returns 1. slay. ✨

if sa is unallocated, stralloc_catb is the same as stralloc_copyb. literally twins. πŸ‘―

if it runs out of memory, stralloc_catb leaves sa alone and returns 0. not the moment, bestie 😭


πŸŽ€ RETURN VALUE πŸŽ€

  • 1 β€” success, we ate πŸ’…
  • 0 β€” on memory allocation failure, it's giving sad girl hours πŸ™ˆ

okay bye bestie 🫢 this was stralloc_catb(3) β€” the footer just says stralloc_catb(3), no source/version/date energy attached, so that's the whole entire page, periodt πŸŒˆπŸ’–