feof

Tests for the End Of File.

int feof (FILE * stream);

Required Header
<stdio.h>

Return Value

This function returns zero if the End Of File position has not been reached, non-zero (1) otherwise. -1 indicates an error in which case errno is set to EINVAL.

Parameters

stream

  A pointer to the open FILE structure

Remarks

clearerr, fseek, fsetpos and rewind all reset the End Of File indicator.

Stream I/O Routines

See Also    clearerr, _eof, ferror, fseek, fsetpos, perror, rewind