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

πŸ’– stralloc_0(3) πŸ’–

okay bestie, welcome to the Library Functions Manual section, and specifically to the littlest icon in it: stralloc_0. she's tiny, she's powerful, she appends a null byte. periodt. ✨


🌸 NAME 🌸

stralloc_0 β€” append \0 to a stralloc

like... that's her whole job. she does one (1) thing and she does it flawlessly. main character energy fr fr πŸ’…


✨ SYNTAX ✨

#include <libowfat/stralloc.h>

int stralloc_0(stralloc* sa);

she takes one pointer, a stralloc* named sa, and returns an int. no drama, no extra args. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so, <cyan>stralloc_0</cyan> appends \0 to a stralloc. that's it. that's the vibe. 🫢

she is literally just a shortcut for <mint>stralloc_append(sa,"")</mint>. same energy, shorter to type. iykyk. πŸ’œ

not me being obsessed with a function that adds one single null byte... no because she's lowkey essential and highkey iconic. 😭

πŸ‘‘ RETURN VALUE πŸ‘‘

  • 1 β€” success!! she ate. slay. πŸ’–
  • 0 β€” memory allocation failure. πŸ’€ the malloc said no. devastating. not her fault tho.

🌈 SEE ALSO 🌈

  • <hotpink>stralloc_append(3)</hotpink> β€” her big sibling, the one she's a shortcut for. go say hi. ✨

and that's the whole page, bestie β€” we're literally at the very end, so this is your cute sign-off: you've reached the footer, and it's just stralloc_0(3) down here keeping us company. from the Library Functions Manual, with love. mwah. πŸ’…πŸ’–πŸŽ€