feof method

int feof(
  1. FILE stream
)

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.

Implementation

int feof(FILE stream) {
  return stream._isEOF ? 1 : 0;
}