array_cate(3)
π array_cate(3) π
okay bestie, welcome to the array_cate page from the Library Functions Manual β yes it's a manual page, yes it's iconic, and yes we're gonna read it together like it's the group chat π
β¨ NAME β¨
array_cate β append a subset of one array to another array π«Ά
πΈ SYNTAX πΈ
first things first, you gotta include the header, no cap:
#include <libowfat/array.h>
and here's the whole function signature, character for character:
void array_cate(array* x,array* y, int64 pos,int64 stop);
and here's how the girlies actually call it:
array x;
array y;
int64 pos;
int64 stop;
array_cate(&x,y,pos,stop);
π¦ DESCRIPTION π¦
so array_cate is literally like array_cat... but make it selective β¨ it only uses byte positions pos through stop-1 in y. that's the vibe. a little slice, a little moment, a little main character energy for a subset of your array.
now for the part where it can go wrong π it fails if:
posis negativestopis smaller thanpos- the number of initialized bytes in
yis smaller thanstop
bestie if any of those happen, it's not slaying, it's failing. periodt. π
π SEE ALSO π
go read these too, they're all part of the friend group:
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 whole page fr fr π the footer is just array_cate(3) again, like the manual name showing up one last time to say bye, and it's coming from the Library Functions Manual. no date, no version, just the name, and honestly? iconic. πβ¨
π¦ 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