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>NANDGetType</title>
9</head>
10
11<body>
12
13<h1>NANDGetType</h1>
14
15<h2>C Specification</h2>
16<dl><dd><pre><code>
17#include &lt;revolution/nand.h&gt;
18
19#define NAND_TYPE_FILE         0x01
20#define NAND_TYPE_DIR          0x02
21
22s32 NANDGetType( const char *path, u8 *type );
23</code></pre></dd></dl>
24
25<h2>Arguments</h2>
26<p>
27<TABLE border="1" >
28  <tr>
29<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><code><EM><STRONG>path</STRONG></EM></code></EM></STRONG></CODE></TD>
30<TD width="520">Specifies the bus name to be checked.</TD>
31  </tr>
32  <tr>
33<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>type</EM></STRONG></CODE></TD>
34<TD width="520">Pointer to a u8 type variable used to store the obtained type (NAND_TYPE_FILE or NAND_TYPE_DIR).</TD>
35  </tr>
36</TABLE>
37</p>
38
39
40<h2>Return Values</h2>
41<p>
42Returns one of the following codes:
43<p>
44<code>NAND_RESULT_OK<br> NAND_RESULT_ACCESS<br> NAND_RESULT_INVALID<br> NAND_RESULT_NOEXISTS<br> NAND_RESULT_UNKNOWN<br> NAND_RESULT_FATAL_ERROR<br></code>
45</p>
46</p>
47
48<H2>Description</H2>
49<p>
50Checks whether the specified path name represents a file or a directory.
51</p>
52
53<h2>See Also</h2>
54<p>
55<code><a href="./NANDGetTypeAsync.html">NANDGetTypeAsync</a></code>
56</p>
57
58<H2>Revision History</H2>
59<p>08/15/2006 Initial version.</p>
60
61<hr>
62<P>CONFIDENTIAL</p>
63</BODY>
64</HTML>
65