.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" %sccs.include.redist.man%
.\" @(#)fread.3 6.5 (Berkeley) %G%
.Nd binary stream input/output
.Fn fread "void *ptr" "size_t size" "size_t nmemb" "FILE *stream"
.Fn fwrite "void *ptr" "size_t size" "size_t nmemb" "FILE *stream"
bytes long, from the stream pointed to by
storing them at the location given by
bytes long, to the stream pointed to by
obtaining them from the location given by
advance the file position indicator for the stream
by the number of characters successfully read or written and return
If an error occurs, or the end-of-file is reached,
the return value is a short character count (or zero).
does not distinguish between end-of-file and error, and callers
to determine which occurred.