Table of Contents
The
function reads objects, each bytes long, from the stream pointed to
by storing them at the location given by The function writes objects,
each bytes long, to the stream pointed to by obtaining them from the
location given by
The functions and advance the file position
indicator for the stream by the number of bytes read or written. They return
the number of objects read or written. If an error occurs, or the end-of-file
is reached, the return value is a short object count (or zero). The function
does not distinguish between end-of-file and error, and callers must use
and to determine which occurred. The function returns a value less than
only if a write error has occurred.
The functions and
conform to
Table of Contents