feof
Syntax:
  #include <stdio.h>
  int feof( FILE *stream );  

The function feof() returns a nonzero value if the end of the given file stream has been reached.