Parameters & Returns
Parameters
Returns
Quick Summary
Checks if the file position is at end of file.
Takes a file handle.
Returns 1 if at end-of-file or handle is invalid, otherwise returns 0.
Technical Exegesis...
Returns 1 if the end-of-file indicator is set for the file, otherwise returns 0. Returns 1 if the handle is invalid.
Uses feof to check the EOF indicator. This is typically set after an attempted read operation fails due to reaching the end. Use this to detect when you've read all data from a file.