ferror

Tests the error indicator for a stream.

Library:LibC
Classification:ANSI
Service:File and Directory I/O

Syntax

  #include <stdio.h> 
   
  int ferror (
     FILE   *fp);
  

Parameters

fp

(IN) Points to the file to be tested.

Return Values

Returns nonzero if the error indicator is set for fp.

See Also