File: readclose.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (14 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.TH readclose 3
.SH NAME
readclose \- read a whole file into a stralloc
.SH SYNTAX
.B #include <libowfat/readclose.h>

int \fBreadclose\fP(int fd,stralloc* \fIsa\fR,size_t \fIbufsize\fR);
.SH DESCRIPTION
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.
.SH "SEE ALSO"
open_read(3), openreadclose(3), readclose_append(3)