Tests a file to see if the end-of-file has been reached.
Format
#include <stdio.h>
int feof (FILE *file_ptr);
1 – Argument
file_ptr
A file pointer.
2 – Return Values
nonzero integer Indicates that the end-of-file has been
reached.
0 Indicates that the end-of-file has not been
reached.