clearerr

Clears the end-of-file and error indicators for a stream.

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

Syntax

  #include <stdio.h> 
   
  void clearerr (
     FILE   *fp);
  

Parameters

fp

(IN) Points to the file to be cleared.

Remarks

The clearerr function clears the end-of-file and error indicators for the file pointed to by fp. These indicators are cleared only when the file is opened or by an explicit call to the clearerr or rewind functions.

See Also