buffer_putalign(3)
π buffer_putalign(3) π
okay so this page comes from the Library Functions Manual β the header literally says buffer_putalign(3) on both sides, no cap. Let's get into it, bestie. π«Ά
β¨ NAME β¨
buffer_putalign β write binary data to buffer
πΈ SYNTAX πΈ
#include <libowfat/buffer.h>
int buffer_putalign(buffer* b,const char* x,size_t len);
π¦ DESCRIPTION π¦
buffer_putalign is basically buffer_put's sibling, fr fr. They're similar, but here's the glow-up:
The difference from buffer_put is all about when the flush happens. When there isn't enough space for new data, buffer_put calls buffer_flush before copying any data. But buffer_putalign? It fills all available space with data first, and only then calls buffer_flush. It's giving "use every last drop" energy. π
π RETURN VALUE π
0β everything is fine, we slay β¨-1β error, and it setserrnoπ
π SEE ALSO π
That's the whole vibe. The footer at the bottom is just buffer_putalign(3) again β no version, no date, just the name doing its little encore. Periodt. π
π¦ 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