• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/libc/
1<html lang="en">
2<head>
3<title>clearerr - Untitled</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="Untitled">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Stdio.html#Stdio" title="Stdio">
9<link rel="next" href="diprintf.html#diprintf" title="diprintf">
10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11<meta http-equiv="Content-Style-Type" content="text/css">
12<style type="text/css"><!--
13  pre.display { font-family:inherit }
14  pre.format  { font-family:inherit }
15  pre.smalldisplay { font-family:inherit; font-size:smaller }
16  pre.smallformat  { font-family:inherit; font-size:smaller }
17  pre.smallexample { font-size:smaller }
18  pre.smalllisp    { font-size:smaller }
19  span.sc    { font-variant:small-caps }
20  span.roman { font-family:serif; font-weight:normal; } 
21  span.sansserif { font-family:sans-serif; font-weight:normal; } 
22--></style>
23<link rel="stylesheet" type="text/css" href="../cs.css">
24</head>
25<body>
26<div class="node">
27<a name="clearerr"></a>
28<p>
29Next:&nbsp;<a rel="next" accesskey="n" href="diprintf.html#diprintf">diprintf</a>,
30Up:&nbsp;<a rel="up" accesskey="u" href="Stdio.html#Stdio">Stdio</a>
31<hr>
32</div>
33
34<h3 class="section">4.1 <code>clearerr</code>&mdash;clear file or stream error indicator</h3>
35
36<p><a name="index-clearerr-145"></a><strong>Synopsis</strong>
37<pre class="example">     #include &lt;stdio.h&gt;
38     void clearerr(FILE *<var>fp</var>);
39     
40</pre>
41   <p><strong>Description</strong><br>
42The <code>stdio</code> functions maintain an error indicator with each file
43pointer <var>fp</var>, to record whether any read or write errors have
44occurred on the associated file or stream.  Similarly, it maintains an
45end-of-file indicator to record whether there is no more data in the
46file.
47
48   <p>Use <code>clearerr</code> to reset both of these indicators.
49
50   <p>See <code>ferror</code> and <code>feof</code> to query the two indicators.
51
52   <p><br>
53<strong>Returns</strong><br>
54<code>clearerr</code> does not return a result.
55
56   <p><br>
57<strong>Portability</strong><br>
58ANSI C requires <code>clearerr</code>.
59
60   <p>No supporting OS subroutines are required.
61
62   <p><br>
63
64   </body></html>
65
66