1 .\" Copyright (c) 1980 Regents of the University of California.
2 .\" All rights reserved. The Berkeley software License Agreement
3 .\" specifies the terms and conditions for redistribution.
5 .\" @(#)fread.3s 6.1 (Berkeley) 5/15/85
7 .TH FREAD 3 "May 15, 1985"
10 fread, fwrite \- buffered binary input/output
14 #include <sys/types.h>
17 size_t fread(void *\fIptr\fP, size_t \fIitemsize\fP, size_t \fInitems\fP, FILE *\fIstream\fP)
18 size_t fwrite(void *\fIptr\fP, size_t \fIitemsize\fP, size_t \fInitems\fP, FILE *\fIstream\fP)
21 reads, into a block beginning at
24 of data of the type of
28 It returns the number of items actually read.
34 and the standard output is line buffered, then any partial output line
35 will be flushed before any call to
43 of data of the type of
49 It returns the number of items actually written.
66 upon end of file or error.