array_catb(3)
π 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 π―ββοΈ
array_allocate(3)array_get(3)array_fail(3)array_reset(3)array_cat(3)array_cats(3)array_cats0(3)array_cate(3)
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 πβ¨π¦
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· GPL-2.0-only
- debian bookworm: libowfat-dev 0.32-4 Β· GPL-2.0-only
- debian trixie: libowfat-dev 0.32-5 Β· GPL-2.0-only
- nixos 26.05: libowfat 0.34
- nixpkgs unstable: libowfat 0.34
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- opensuse-leap 16.0: libowfat-devel 0.33-bp160.1.11 Β· GPL-2.0-only
- ubuntu noble: libowfat-dev 0.32-4.1build1 Β· GPL-2.0-only
- ubuntu questing: libowfat-dev 0.32-5
- ubuntu resolute: libowfat-dev 0.34-2 Β· GPL-2.0-only
- ubuntu stonking: libowfat-dev 0.34-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms