C Programming/C Reference/stdio.h/clearerr

< C Programming < C Reference < stdio.h

Syntax:

 #include <cstdio>
 void clearerr( FILE *stream );

The clearerr function resets the error flags and EOF indicator for the given stream. When an error occurs, you can use perror() to figure out which error actually occurred.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.