buffer_putflush(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_putflush(3) πŸ’–

okay bestie, welcome to the Library Functions Manual β€” this one's short but it slaps, fr fr ✨


✨ NAME ✨

buffer_putflush β€” write binary data to buffer and flush πŸ¦‹

like... it does the putting AND the flushing. a multitasker. main character energy honestly πŸ‘‘


🌸 SYNTAX 🌸

#include <libowfat/buffer.h>

int buffer_putflush(buffer* b,
                    const char* x,size_t len);

copy that exactly, no cap, character for character 🫢


πŸŽ€ DESCRIPTION πŸŽ€

so buffer_putflush is lowkey just the combo meal πŸ“ β€” it's similar to calling buffer_put(b,x,len) and then buffer_flush(b) right after. two steps, one function call, we love an efficient queen πŸ’…


⭐ RETURN VALUE ⭐

  • 0 β€” everything's fine, we're thriving, vibe check passed πŸ’–
  • -1 β€” uh oh, error 😭 (and it sets errno, so go check that)

🌈 SEE ALSO 🌈

go read those too, iykyk πŸ“šβœ¨


and that's the whole page, bestie!! 🧚 this lil cutie comes to you straight from the Library Functions Manual β€” the buffer_putflush(3) page itself, mwah πŸ’‹ go forth and flush responsibly, ily πŸ’œ