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/size.html">
8 <link rel=
"stylesheet" href=
"../css_e.css" type=
"text/css" media=
"screen" title=
"ELM Default">
9 <title>FatFs - f_size
</title>
14 <div class=
"para func">
16 <p>The f_size function gets the size of 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 the size of the file in unit of byte.
</p>
40 <div class=
"para desc">
42 <p>In this revision, the
<tt>f_size
</tt> function is implemented as a macro. It does not have any validation and mutual exclusion.
</p>
44 <span class=
"k">#define
</span> f_size(fp) ((fp)-
>obj.objsize)
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=
"lseek.html">f_lseek
</a>,
<a href=
"sfile.html">FIL
</a></tt></p>
60 <p class=
"foot"><a href=
"../00index_e.html">Return
</a></p>