1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
6 <link rel=
"up" title=
"FatFs" href=
"../00index_e.html">
7 <link rel=
"alternate" hreflang=
"ja" title=
"Japanese" href=
"../ja/error.html">
8 <link rel=
"stylesheet" href=
"../css_e.css" type=
"text/css" media=
"screen" title=
"ELM Default">
9 <title>FatFs - f_error
</title>
14 <div class=
"para func">
16 <p>The f_error tests for an error on a file.
</p>
19 FIL*
<span class=
"arg">fp
</span> <span class=
"c">/* [IN] File object */
</span>
25 <div class=
"para arg">
29 <dd>Pointer to the open file object structure.
</dd>
34 <div class=
"para ret">
35 <h4>Return Values
</h4>
36 <p>Returns a non-zero value if a hard error has occured; otherwise it returns a zero.
</p>
40 <div class=
"para desc">
42 <p>In this revision, this function is implemented as a macro. It does not have any validation and mutual exclusion.
</p>
44 <span class=
"k">#define
</span> f_error(fp) ((fp)-
>err)
49 <div class=
"para comp">
51 <p>Always available.
</p>
55 <div class=
"para ref">
57 <p><tt><a href=
"open.html">f_open
</a>,
<a href=
"sfile.html">FIL
</a></tt></p>
60 <p class=
"foot"><a href=
"../00index_e.html">Return
</a></p>