1readclose_append(3)        Library Functions Manual        readclose_append(3)
2
3
4

NAME

6       readclose_append - read a whole file into a stralloc
7

SYNTAX

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

DESCRIPTION

15       readclose_append  reads the whole content into the stralloc sa, appendā€
16       ing it to the existing content.  The file is read in chunks of  bufsize
17       bytes size.  If everything worked fine, readclose_append returns 0.  On
18       error, readclose_append returns -1 and sets errno appropriately.
19

SEE ALSO

21       open_read(3), openreadclose(3), readclose(3)
22
23
24
25                                                           readclose_append(3)
Impressum