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.

15 lines
498 B

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