FEOF - check for end of file.

Alternate Entry Name: _FEOF

Usage:

B:
   stat = feof( [unit] );
/* C users see "expl c lib feof" */

Where:

unit
is the number of the I/O unit to be tested or ended. This must be an input unit. If "unit" is not specified, the current read unit is tested for end-of-file.
stat
receives a non-zero value if the unit is at end-of-file, and zero otherwise.

Description:

FEOF tests whether or not an input unit is in end-of-file status. An input unit is placed in end-of-file status only after a read results in end-of-file being detected.

See Also:

expl b lib eof
for a function that works on both input and output units.

Copyright © 1996, Thinkage Ltd.