]> cloudbase.mooo.com Git - z180-stamp.git/blob - fatfs/doc/en/chdrive.html
Import fatfs R0.12b
[z180-stamp.git] / fatfs / doc / en / chdrive.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html lang="en">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
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/chdrive.html">
8 <link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
9 <title>FatFs - f_chdrive</title>
10 </head>
11
12 <body>
13
14 <div class="para func">
15 <h2>f_chdrive</h2>
16 <p>The f_chdrive function changes the current drive.</p>
17 <pre>
18 FRESULT f_chdrive (
19 const TCHAR* <span class="arg">path</span> <span class="c">/* [IN] Logical drive number */</span>
20 );
21 </pre>
22 </div>
23
24 <div class="para arg">
25 <h4>Parameters</h4>
26 <dl class="par">
27 <dt>path</dt>
28 <dd>Specifies the <a href="filename.html">logical drive number</a> to be set as the current drive.</dd>
29 </dl>
30 </div>
31
32
33 <div class="para ret">
34 <h4>Return Values</h4>
35 <p>
36 <a href="rc.html#ok">FR_OK</a>,
37 <a href="rc.html#id">FR_INVALID_DRIVE</a>
38 </p>
39 </div>
40
41
42 <div class="para desc">
43 <h4>Description</h4>
44 <p>The <tt>f_chdrive</tt> function changes the current drive. The initial value of the current drive number is 0. Note that the current drive is retained in a static variable so that it also affects other tasks that using the file functions.</p>
45 </div>
46
47 <div class="para comp">
48 <h4>QuickInfo</h4>
49 <p>Available when <tt>_FS_RPATH >= 1</tt> and <tt>_VOLUMES >= 2</tt>.</p>
50 </div>
51
52
53 <div class="para ref">
54 <h4>See Also</h4>
55 <p><tt><a href="chdir.html">f_chdir</a>, <a href="getcwd.html">f_getcwd</a></tt></p>
56 </div>
57
58 <p class="foot"><a href="../00index_e.html">Return</a></p>
59 </body>
60 </html>