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

stralloc_append - append a character to a stralloc πŸ’– (yep, we're in the Library Functions Manual, bestie, keep up)

πŸ¦‹ SYNTAX πŸ¦‹

#include <libowfat/stralloc.h>

int stralloc_append(stralloc* sa,const char* in);

🌸 DESCRIPTION 🌸

okay so real talk: stralloc_append appends the byte from *buf to the string stored in sa, allocating space if necessary, and returns 1. that's the whole assignment, no cap ✨

if it runs out of memory, stralloc_append leaves sa alone and returns 0. so like, your sa stays untouched, bestie πŸ’€

πŸ’… RETURN VALUE πŸ’…

  • 1 for success 🌟
  • 0 on memory allocation failure 😭

πŸŽ€ SEE ALSO πŸŽ€


and that's the page, babe 🫢 β€” footer said stralloc_append(3), so we're out here with no source/version/date drama, just pure stralloc_append(3) energy. mwah πŸ’‹