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

πŸ’– buffer_putsflush(3) β€” the libowfat glow-up you didn't know you needed πŸ’–

okay bestie, sit down, hydrate, because we're talking about buffer_putsflush(3) from the Library Functions Manual and honestly? she's a little icon. πŸŽ€


✨ NAME ✨

buffer_putsflush β€” write an ASCIIZ string to a buffer and flush it. like, write it and immediately send it, no waiting around, no ghosting. πŸ’…


🌸 SYNTAX 🌸

#include <libowfat/buffer.h>

int buffer_putsflush(buffer* b,const char* x);

yes, that's buffer* b first and const char* x second, in that exact order, don't come for me. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so buffer_putsflush is literally buffer_putflush, except the len is figured out for you: it's the number of bytes before the first \0 in x. πŸ“

that's it. that's the whole thing. it's giving "I don't want to count my own string length, you do it". no cap. ✨

🌈 heads up: because it stops at the first \0, that's your string's ending right there β€” classic ASCIIZ behaviour, iykyk.

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie!! πŸ’œ go forth and flush responsibly. this has been buffer_putsflush(3) from the Library Functions Manual β€” periodt. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ