libowfat/open/readclose_append.3

17 lines
600 B
Groff
Raw Normal View History

2002-09-16 23:49:15 +00:00
.TH readclose_append 3
.SH NAME
readclose_append \- read a whole file into a stralloc
.SH SYNTAX
.B #include <libowfat/readclose.h>
2002-09-16 23:49:15 +00:00
2014-03-14 19:42:54 +00:00
ssize_t \fBreadclose_append\fP(int fd,stralloc* \fIsa\fR,
2006-11-07 17:56:05 +00:00
size_t \fIbufsize\fR);
2002-09-16 23:49:15 +00:00
.SH DESCRIPTION
readclose_append reads the
whole content into the stralloc \fIsa\fR, appending it to the existing
content. The file is read in chunks of
\fIbufsize\fR bytes size. If everything worked fine, readclose_append returns
0. On error, readclose_append returns -1 and sets errno appropriately.
.SH "SEE ALSO"
open_read(3), openreadclose(3), readclose(3)