feof

Full prototype:

int feof(FILE*);  

Purpose and Notes:

Tests/checks for the end-of-file (EOF) indicator for the file stream passed in as the only argument. If the EOF has been set for the file stream then it returns a nonzero value, otherwise it returns zero indeicating the EOF indicator is not set for the file stream.

Returns:

int-A zero if the EOF indicator has NOT been set for the stream, otherwise a nonzero is returned.

Argument 1:

FILE*-A pointer to a file stream that you want to check to see if the EOF indicator has been set for.

Example 1
  1    FILLER SOURCE CODE
FILLER TERMINAL