fmt_copybytes(3)
π fmt_copybytes β a manual page, but make it cute π
okay so bestie, welcome to fmt_copybytes(3) from the Library Functions Manual π«Ά this one is short, sweet, and honestly kind of a slay. let's get into it.
β¨ NAME β¨
fmt_copybytes β write binary data πΎβ¨
like. literally just copy some bytes. that's the whole job. and she does it flawlessly.
πΈ SYNTAX πΈ
#include <libowfat/fmt.h>
size_t fmt_copybytes(char *dest,const char *source, size_t limit);
look at that signature. clean. iconic. no notes. π
π¦ DESCRIPTION π¦
so here's the tea, bestie β β fmt_copybytes copies limit bytes from source to dest and returns limit. that's it. that's the function. she copies, she returns the number, she leaves. main character behaviour, honestly π
ngl this one is a convenience wrapper interface around memcpy / byte_copy, and the whole reason she exists is to make byte-copying work like all the other fmt functions do π so if you're already vibing in fmt-land and you need a raw byte copy that matches the rest of the crew, she's your girl. no cap.
fr fr: she returnslimit, not something else. don't overthink it. the way thatlimitgoes in andlimitcomes back out is lowkey poetic π
π SEE ALSO π
go say hi to the cousins, they're family π
and that's the whole page!! π signed off the way it always is β fmt_copybytes(3), out here repping the Library Functions Manual, and that's periodt. β¨π§π
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· 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 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