feof()

This is a File I/O function. It is not implemented in the Compiler.

Syntax
#include <stdio.h>

  
  int feof(FILE *f);

  
Description

feof() tests whether previous I/O calls on file f tried to do anything beyond the end of the file.

Note: Calling clearerr() or fseek() clears the file's end-of-file flag; therefore feof() returns 0.
Return

Zero, if you are not at the end of the file; EOF otherwise.