Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
593 B

  1. .TH readclose_append 3
  2. .SH NAME
  3. readclose_append \- read a whole file into a stralloc
  5. .B #include <readclose.h>
  6. int \fBreadclose_append\fP(int fd,stralloc* \fIsa\fR,
  7. unsigned int \fIbufsize\fR);
  9. readclose_append reads the
  10. whole content into the stralloc \fIsa\fR, appending it to the existing
  11. content. The file is read in chunks of
  12. \fIbufsize\fR bytes size. If everything worked fine, readclose_append returns
  13. 0. On error, readclose_append returns -1 and sets errno appropriately.
  14. .SH "SEE ALSO"
  15. open_read(3), openreadclose(3), readclose(3)