byte_copy(3)
π 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 arversion, 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! π«Άπ
π¦ 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