Example: feofInput-Output Functions

Checks if the end of file has occurred on a stream.

int feof( FILE *file_pointer);

file_pointer A pointer to a file.

Return Values

Returns a non-zero value when the position indicator reaches the End Of File in the last input operation with the specified stream. Otherwise, returns 0.