array_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

πŸ’– array_catb β€” append bytes to an array πŸ’–

okay bestie, welcome to the array_catb(3) page from the Library Functions Manual ✨ this one is short and sweet and honestly? a lil icon. it's giving "just put the bytes in the array" and we love that for us 🫢


✨ NAME ✨

array_catb β€” append bytes to an array 🌸

✨ SYNTAX ✨

first things first, you gotta bring in the header, no cap:

#include <libowfat/array.h>

and here's the actual function signature, character for character, don't @ me:

void array_catb(array* x,const char* y,int64 len);

and here's how it looks when you're actually out there living your main character life:

array x;
const char* y;
int64 len;
array_catb(&x,y,len);

✨ DESCRIPTION ✨

so like, array_catb takes the bytes y[0], y[1], ..., y[len-1] and appends them onto the array x πŸ’… that's it. that's the whole vibe. you hand it a pointer and a length and it just adds them, one after another, in order, like a little conga line of bytes πŸŽ€

and if something goes wrong? it handles failure the exact same way as array_cat does β€” so if you already know how array_cat throws down when things go sideways, you're already fluent, iykyk πŸ‘‘

no cap though, this page doesn't spell out the failure behaviour itself, it just points you at array_cat for that tea β˜• go read it bestie

✨ SEE ALSO ✨

the whole friend group, go say hi πŸ‘―β€β™€οΈ


and that's the page, bestie!! 🌈 this absolute gem lives in the Library Functions Manual and it's signed off as array_catb(3) β€” that's the source/version-and-date energy at the bottom, and honestly? iconic. go forth and append those bytes fr fr πŸ’–βœ¨πŸ¦‹