]>
Commit | Line | Data |
---|---|---|
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r | |
2 | <html lang="en">\r | |
3 | <head>\r | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r | |
5 | <meta http-equiv="Content-Style-Type" content="text/css">\r | |
6 | <link rel="up" title="FatFs" href="../00index_e.html">\r | |
7 | <link rel="alternate" hreflang="ja" title="Japanese" href="../ja/size.html">\r | |
8 | <link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">\r | |
9 | <title>FatFs - f_size</title>\r | |
10 | </head>\r | |
11 | \r | |
12 | <body>\r | |
13 | \r | |
14 | <div class="para func">\r | |
15 | <h2>f_size</h2>\r | |
16 | <p>The f_size function gets the size of a file.</p>\r | |
17 | <pre>\r | |
18 | FSIZE_t f_size (\r | |
19 | FIL* <span class="arg">fp</span> <span class="c">/* [IN] File object */</span>\r | |
20 | );\r | |
21 | </pre>\r | |
22 | </div>\r | |
23 | \r | |
24 | \r | |
25 | <div class="para arg">\r | |
26 | <h4>Parameters</h4>\r | |
27 | <dl class="par">\r | |
28 | <dt>fp</dt>\r | |
29 | <dd>Pointer to the open file object structure.</dd>\r | |
30 | </dl>\r | |
31 | </div>\r | |
32 | \r | |
33 | \r | |
34 | <div class="para ret">\r | |
35 | <h4>Return Values</h4>\r | |
36 | <p>Returns the size of the file in unit of byte.</p>\r | |
37 | </div>\r | |
38 | \r | |
39 | \r | |
40 | <div class="para desc">\r | |
41 | <h4>Description</h4>\r | |
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>\r | |
43 | <pre>\r | |
44 | <span class="k">#define</span> f_size(fp) ((fp)->obj.objsize)\r | |
45 | </pre>\r | |
46 | </div>\r | |
47 | \r | |
48 | \r | |
49 | <div class="para comp">\r | |
50 | <h4>QuickInfo</h4>\r | |
51 | <p>Always available.</p>\r | |
52 | </div>\r | |
53 | \r | |
54 | \r | |
55 | <div class="para ref">\r | |
56 | <h4>See Also</h4>\r | |
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>\r | |
58 | </div>\r | |
59 | \r | |
60 | <p class="foot"><a href="../00index_e.html">Return</a></p>\r | |
61 | </body>\r | |
62 | </html>\r |