1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>NANDGetLength</title>
9</head>
10
11<body>
12
13<h1>NANDGetLength</h1>
14
15<h2>Syntax</h2>
16<dl><dd><pre class="construction">#include &lt;revolution/nand.h&gt;
17
18s32 NANDGetLength(NANDFileInfo *info, u32 *length);
19</pre></dd></dl>
20
21<h2>Arguments</h2>
22<p>
23<TABLE class="arguments" border="1" >
24  <tr>
25<TH>info</TH>
26<TD>Pointer to a <CODE>NANDFileInfo</CODE> structure.</TD>
27  </tr>
28  <tr>
29<TH>length</TH>
30<TD>Pointer to a u32-type variable that stores the file size.</TD>
31  </tr>
32</TABLE>
33</p>
34
35
36<h2>Return Values</h2>
37<p>
38Returns one of the following codes.
39<p>
40<code>
41NAND_RESULT_OK<br>
42NAND_RESULT_ACCESS<br>
43NAND_RESULT_ALLOC_FAILED<br>
44NAND_RESULT_BUSY<br>
45NAND_RESULT_INVALID<br>
46NAND_RESULT_UNKNOWN<br>
47NAND_RESULT_FATAL_ERROR<br>
48</code>
49</p>
50</p>
51
52<H2>Description</H2>
53<p>
54Gets the file size. The size is given in bytes.
55</p>
56
57<p>
58This function may put the current thread to sleep. For precautions related to calling similar functions, see <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>.
59</p>
60
61<h2>See Also</h2>
62<p class="reference">
63<a href="./NANDGetLengthAsync.html">NANDGetLengthAsync</a>,
64<a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>
65</p>
66
67<H2>Revision History</H2>
68<p>
692007/09/25 Added information about the sleep status of threads.<br>2006/11/30 Added the <CODE>NAND_RESULT_ALLOC_FAILED</CODE> and <CODE>NAND_RESULT_BUSY</CODE> codes.<br>2006/06/16 Initial version.<BR>
70</p>
71
72<hr><p>CONFIDENTIAL</p></body>
73</html>