clearerr [C++ Reference]
Keywords: c,io,clearerr
Date: 2008-10-16T18:21:22-0700

[[clearerr]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## clearerr

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.

Related Topics: feof, ferror, perror

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •