buffer_puts(3)
β¨ buffer_puts(3) β¨
okay bestie so this is a page from the Library Functions Manual and it's literally all about buffer_puts π it's giving "write a string to a buffer" and it EATS, let me tell you everything.
πΈ NAME πΈ
buffer_puts β write ASCIIZ string to buffer π
π SYNTAX π
#include <libowfat/buffer.h>
int buffer_puts(buffer* b,const char* x);
yep that's the whole vibe. two args, one int back. iconic. π¦
π DESCRIPTION π
so buffer_puts is like buffer_put, except the len isn't something you hand over β it gets figured out as the number of bytes before the first \0 in x β¨ ASCIIZ behavior, no cap.
now here's the tea β β the difference between this and buffer_putsalign is when the flush happens:
buffer_putsβ when there isn't enough space for the new data, it callsbuffer_flushbefore copying any data. like, clean slate first, then we write. π§buffer_putsalignβ it fills up all the available space with data first, and then callsbuffer_flush. main character energy, uses every last crumb. π
same destination, different order of operations, and that's the whole point. iykyk. π
π RETURN VALUE π
0β everything was fine, we slayed, no notes π«Ά-1β error bestie π and yeah, it setserrnoso you can go find out what went wrong
β SEE ALSO β
and that's the page!! this was buffer_puts(3) from the Library Functions Manual β go forth and buffer responsibly, love u, bye πβ¨π
π¦ 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