readclose(3)
πΈ readclose(3) πΈ
okay so bestie, welcome to the Library Functions Manual β manual name folded in, no cap β and today's main character is readclose(3). she's giving "read a whole file into a stralloc" energy and we are obsessed. πβ¨
β¨ NAME β¨
readclose β read a whole file into a stralloc π«Ά
π SYNTAX π
#include <libowfat/readclose.h>
int readclose(int fd,stralloc* sa,size_t bufsize);
π DESCRIPTION π
so readclose reads the whole content into the stralloc sa. yes, the whole content, she's not doing half measures. π
the file is read in chunks of bufsize bytes size. that's the chunk size, periodt. π
if everything worked fine, readclose returns 0. slay. β
on error, readclose returns -1 and sets errno appropriately. so if it's not giving 0, the errno tea is right there, bestie. π¨
π SEE ALSO π
signing off from the Library Functions Manual, where the footer just says readclose(3) π
β¨
π¦ 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