fmt_strm(3)

πŸ“¦
version 0.34 Β· 3 versions
, in alpine 3.24, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

✨ NAME ✨

hey bestie, welcome to the fmt_strm(3) page from the Library Functions Manual 🫢 this one is lowkey iconic: she writes multiple ASCII strings, no cap.

  • fmt_strm β€” write multiple ASCII strings πŸ’–

πŸ¦‹ SYNTAX πŸ¦‹

#include <libowfat/fmt.h>

size_t fmt_strm(char *dest,const char *source, ...);

🌸 DESCRIPTION 🌸

okay so picture this: fmt_strm copies all leading nonzero bytes from source and the following function arguments into dest πŸ’… then she returns the number of bytes she copied. periodt.

she does not append \0, bestie. not even a little. πŸ™ˆ

now for the main-character plot twist: if dest equals FMT_LEN (i.e. is zero), then fmt_str returns the number of bytes it would have written β€” that's the number of leading nonzero bytes of source and the following function arguments. ✨

ngl the original text says fmt_str right there, not fmt_strm β€” so we're keeping it exactly as written, fr fr. no edits, no erasure, just facts. πŸ’―


πŸ’… SEE ALSO πŸ’…

go read these when you're done, iykyk πŸŽ€


and that's the vibe check: this page comes from the Library Functions Manual, and the footer just signs off as fmt_strm(3) β€” no version or date on this one, so that's the cute sign-off, bestie πŸ’–βœ¨