SIMPLE SOLUTIONS

READCLOSE_APPEND(3) - Linux man page online | Library functions

Read a whole file into a stralloc.

Chapter
readclose_append(3) Library Functions Manual readclose_append(3)

NAME

readclose_append - read a whole file into a stralloc

SYNTAX

#include <readclose.h> ssize_t readclose_append(int fd,stralloc* sa, size_t bufsize);

DESCRIPTION

readclose_append reads the whole content into the stralloc sa, appending it to the exist‐ ing content. The file is read in chunks of bufsize bytes size. If everything worked fine, readclose_append returns 0. On error, readclose_append returns -1 and sets errno appropriately.

SEE ALSO

open_read(3), openreadclose(3), readclose(3)
readclose_append(3)
This manual Reference Other manuals
readclose_append(3) referred by readclose(3)
refer to open_read(3) | openreadclose(3) | readclose(3)
Download raw manual
Main page Library Functions Manual (+5028) № 3 (+68044)
Go top