array_cate(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_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:

  • pos is negative
  • stop is smaller than pos
  • the number of initialized bytes in y is smaller than stop
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:


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. πŸŽ€βœ¨