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.

14 lines
501 B

.TH readclose 3
readclose \- read a whole file into a stralloc
.B #include <libowfat/readclose.h>
int \fBreadclose\fP(int fd,stralloc* \fIsa\fR,size_t \fIbufsize\fR);
readclose reads the
whole content into the stralloc \fIsa\fR. The file is read in chunks of
\fIbufsize\fR bytes size. If everything worked fine, readclose returns
0. On error, readclose returns -1 and sets errno appropriately.
open_read(3), openreadclose(3), readclose_append(3)