buffer_feed(3)
β¨ buffer_feed(3) β¨
okay so bestie, welcome to the <strong>Library Functions Manual</strong> entry for buffer_feed</strong> β she's a low-level girly and she's literally the backbone of buffer_get. π
πΈ NAME πΈ
buffer_feed β the low-level component of buffer_get, aka the behind-the-scenes main character π
π¦ SYNTAX π¦
#include <libowfat/buffer.h>
ssize_t buffer_feed(buffer* b);
that's it, that's the whole vibe check. one include, one function, one pointer. slay. β¨
π DESCRIPTION π
So here's the tea β β the way buffer_feed behaves depends entirely on whether the string is <em>nonempty</em> or <em>empty</em>, and ngl it's giving "two moods":
- If the string is nonempty,
buffer_feedreturns the length of the string. That's it. No reads, no drama, just the number. π - If the string is empty,
buffer_feeduses the read operation to feed data into the string π«Ά β and then it returns the new length of the string.
And when it does that read-y thing, there are two special returns you gotta know about, fr fr:
0β that's end of input, no more data coming, the era is over π-1β that's an error. not cute. handle her. π
π SEE ALSO π
go read the whole friend group, they're all iconic together π
and that's the whole page bestie!! π
this was the <strong>Library Functions Manual</strong> edition of buffer_feed(3) β no date stamp, no fancy version, just pure libowfat energy. mwah, go forth and feed your buffers πβ¨π¦
π¦ where this page comes from
- alpine 3.24: libowfat-doc 0.34-r0 Β· 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 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