Query: readclose_append
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
readclose_append(3) Library Functions Manual readclose_append(3)NAMEreadclose_append - read a whole file into a strallocSYNTAX#include <readclose.h> int readclose_append(int fd,stralloc* sa, size_t bufsize);DESCRIPTIONreadclose_append reads the whole content into the stralloc sa, appending it to the existing 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 ALSOopen_read(3), openreadclose(3), readclose(3) readclose_append(3)