int _IO_feof(_IO_FILE *__fp);
The function _IO_feof() tests the end-of-file indicator for the stream pointed to by __fp, returning non-zero if it is set.