readclose(3)

readclose3

Read a whole file into a stralloc

Usage

#include <libowfat/readclose.h>

int readclose(int fd,stralloc* sa,size_t bufsize);

Overview

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

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.