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

πŸ‘‘ 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 πŸ’…πŸŽ€