You cannot 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
Groff
17 lines
593 B
Groff
23 years ago
|
.TH readclose_append 3
|
||
|
.SH NAME
|
||
|
readclose_append \- read a whole file into a stralloc
|
||
|
.SH SYNTAX
|
||
|
.B #include <readclose.h>
|
||
|
|
||
|
int \fBreadclose_append\fP(int fd,stralloc* \fIsa\fR,
|
||
|
unsigned int \fIbufsize\fR);
|
||
|
.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)
|