buffer_putsaflush(3)
π buffer_putsaflush β Library Functions Manual β¨
okay bestie, sit down, hydrate, and let me tell you about the most lowkey iconic little function in the whole libowfat friend group π«Ά it's buffer_putsaflush(3) and honestly? she does exactly what it says on the tin, and that's the vibe.
πΈ NAME πΈ
buffer_putsa β write stralloc to buffer and flush π
like, she takes your stralloc, shoves it into your buffer, and then flushes the whole thing. no notes. periodt.
β¨ SYNTAX β¨
#include <libowfat/stralloc.h>
#include <libowfat/buffer.h>
int buffer_putsaflush(buffer* b,const stralloc* x);
two headers, one function, zero drama. you will be including both of those, bestie, don't try to skip one π
π¦ DESCRIPTION π¦
so here's the tea β buffer_putsaflush is equivalent to:
buffer_putflush(b,x.s,x.len)
that's it. that's the whole thing. she's a little wrapper, a cute lil shortcut, and honestly we love a function that knows its lane π
you hand her a buffer pointer b and a const stralloc* called x, she reaches into x.s for the data and x.len for the length, and off it goes into b β flushed and everything. no cap. π₯
π RETURN VALUE π
0β everything is fine, the vibes are immaculate, we ate β¨-1β uh oh, error π and yes, she setserrnoso you can go find out what went wrong
no "maybe", no "sort of", no secret third thing.0or-1. she's decisive like that π
π SEE ALSO π
go read those too, they're the rest of the squad π
okay so that's the whole page, and now for the cute sign-off: this was the buffer_putsaflush(3) page from the Library Functions Manual, and if you scroll all the way to the bottom of the original you'll just find buffer_putsaflush(3) staring back at you again β same name, top and bottom, matching set, very main character π bye bestie, go flush something responsibly π§
π¦ 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