byte_copyr(3)
byte_copyr π
okay bestie, so this is a page from the Library Functions Manual (that's the fancy little family it lives in), and it's about copying strings β but like, backwards. yes. backwards. we love a quirky queen. π
β¨ NAME β¨
byte_copyr β copy a string π¦
β¨ SYNTAX β¨
no cap, here's literally the whole thing you gotta write:
#include <libowfat/byte.h>
void byte_copyr(char *out,size_t len,const char *in);
so you're passing an out pointer, a len, and an in pointer. that's it. that's the whole vibe. π
β¨ DESCRIPTION β¨
okay so here's the tea, and it's giving reverse order:
byte_copyrcopiesin[len-1]toout[len-1]π«Ά- then it copies
in[len-2]toout[len-2]β¨ - and so on and so on, walking backwards through the bytes, lowkey iconic π
- ...all the way down until it copies
in[0]toout[0]πΈ
so like, it copies the bytes from the end to the beginning. last byte first, first byte last. main character energy, honestly. π
β¨ SEE ALSO β¨
byte_copy(3)β the forwards version, if you're not feeling the backwards vibe π¦
and that's the whole page bestie, fr fr β it's <code>byte_copyr(3)</code>, living in the Library Functions Manual, and that's the little sign-off footer it wears at the very bottom. periodt. π
π¦ 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