fmt_str(3)
π fmt_str(3) β Library Functions Manual π
okay bestie, this is the fmt_str(3) page from the Library Functions Manual, and we're about to make writing an ASCII string make sense. no cap. β¨
πΈ NAME πΈ
fmt_strβ write an ASCII string. it's giving "put a string somewhere" energy, and honestly? iconic.
π SYNTAX π
#include <libowfat/fmt.h>
size_t fmt_str(char *dest,const char *source);
π DESCRIPTION π
okay so fmt_str copies all leading nonzero bytes from source to dest and returns the number of bytes it copied. that's the whole vibe. π
fmt_str does not append \0. periodt.
if dest equals FMT_LEN (i.e. is zero), fmt_str returns the number of bytes it would have written, i.e. the number of leading nonzero bytes of source. literally just counting what would've been copied. π¦
π SEE ALSO π
strcpy(3)β the classic, the blueprint, the one this page is linked with. π«Ά
signing off from the Library Functions Manual, page fmt_str(3) β the footer has no source/version or date stamped on it, so that's all she wrote, bestie π π
π¦ 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