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

πŸ’– byte_copy(3) πŸ’–

okay bestie, welcome to the Library Functions Manual β€” we're talking about byte_copy(3) today and honestly? she's iconic for how simple she is. πŸŽ€


✨ NAME ✨

byte_copy β€” copy a string 🫢


🌸 SYNTAX 🌸

#include <libowfat/byte.h>

void byte_copy(char *out,size_t len,const char *in);

no cap, that's the whole thing. short. sweet. slay. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, and it is SO simple:

byte_copy copies in[0] to out[0], in[1] to out[1], etc., and finally in[len-1] to out[len-1].

like... she just goes down the line, one byte at a time, matching them up by index. that's it. that's the function. every byte in in finds its twin in out. matching outfits. bestie behavior fr fr. πŸ’œ

ngl this is the kind of function that looks like nothing and then carries half your codebase. respect the craft. πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

  • byte_copyr(3) β€” the other one πŸ‘€ (yes, there's a r version, go look, iykyk)

and that's the whole page, bestie!! 🌈 this was byte_copy(3) from the Library Functions Manual β€” go forth, copy those bytes, and remember: index by index, no drama. πŸ’–βœ¨πŸ§š mwah! πŸ«ΆπŸ“