Tests the end-of-file indicator for the given stream. Returns a non-zero value if and only if the end-of-file indicator is set.
stream
int feof(FILE stream) { return stream._isEOF ? 1 : 0; }