Guardian C Library Calls Reference Manual
Reference to Library Calls
Guardian TNS C Library Calls Reference Manual—128833 3-17
clearerr
clearerr
The clearerr function resets the end-of-file and error indicators of a file opened for
ANSI I/O.
stream
denotes a file opened for ANSI I/O.
Return Value
none.
Usage Guidelines
•
The clearerr function might be implemented as a macro in a future release.
•
The end-of-file and error indicators are reset only when you open the file or
explicitly call the clearerr, edfseek, fseek, or rewind function.
Example
This example resets the end-of-file and error indicators for the file $a.b.c:
#include <stdioh>
FILE *fp;
fp = fopen("$a.b.c", "r+");
/* ... */
clearerr(fp);
#include <stdioh>
void clearerr(FILE *stream);