cppreference.com > Standard C I/O > feof
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.