ferror

Full prototype:

int ferror(FILE*);  

Purpose and Notes:

Tests/checks for error indicators set for the file stream passed in as the only argument. If any error indicators have been set, then it returns a nonzero value. If no error indicators have been set then it returns zero.

Returns:

int- A value that if it reutrns zero indicates that no error indicators are set for the file stream passed in as the only argument. Otherwise an error is indicated for the file stream.

Argument 1:

FILE*- A pointer to a FILE stream that you want to check to see if any error indicators have been set for.

Example 1
  1    FILLER SOURCE CODE
FILLER TERMINAL TEXT