.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)fread.3 6.2 (Berkeley) %G%
fread, fwrite \- buffered binary input/output
.B fread(ptr, sizeof(*ptr), nitems, stream)
.B fwrite(ptr, sizeof(*ptr), nitems, stream)
reads, into a block beginning at
It returns the number of items actually read.
and the standard output is line buffered, then any partial output line
will be flushed before any call to
It returns the number of items actually written.
upon end of file or error.