]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - fatfs/documents/doc/getfree.html
Import fatfs R0.13b
[z180-stamp.git] / fatfs / documents / doc / getfree.html
similarity index 73%
rename from fatfs/doc/en/getfree.html
rename to fatfs/documents/doc/getfree.html
index 1cfc09a1ca410e98741494420a63f355baf0db7a..cdc730b71499c3faaba37f3db9804d2588fa9500 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
 <html lang="en">\r
 <head>\r
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
 <meta http-equiv="Content-Style-Type" content="text/css">\r
 <link rel="up" title="FatFs" href="../00index_e.html">\r
 <link rel="alternate" hreflang="ja" title="Japanese" href="../ja/getfree.html">\r
@@ -18,7 +18,7 @@
 FRESULT f_getfree (\r
   const TCHAR* <span class="arg">path</span>,  <span class="c">/* [IN] Logical drive number */</span>\r
   DWORD* <span class="arg">nclst</span>,       <span class="c">/* [OUT] Number of free clusters */</span>\r
-  FATFS** <span class="arg">fatfs</span>       <span class="c">/* [OUT] Corresponding file system object */</span>\r
+  FATFS** <span class="arg">fatfs</span>       <span class="c">/* [OUT] Corresponding filesystem object */</span>\r
 );\r
 </pre>\r
 </div>\r
@@ -31,7 +31,7 @@ FRESULT f_getfree (
 <dt>nclst</dt>\r
 <dd>Pointer to the <tt>DWORD</tt> variable to store number of free clusters.</dd>\r
 <dt>fatfs</dt>\r
-<dd>Pointer to pointer that to store a pointer to the corresponding file system object.</dd>\r
+<dd>Pointer to pointer that to store a pointer to the corresponding filesystem object.</dd>\r
 </dl>\r
 </div>\r
 \r
@@ -53,13 +53,13 @@ FRESULT f_getfree (
 \r
 <div class="para desc">\r
 <h4>Descriptions</h4>\r
-<p>The <tt>f_getfree</tt> function gets number of free clusters on the volume. The member <tt>csize</tt> in the file system object indicates number of sectors per cluster, so that the free space in unit of sector can be calcurated with this information. When FSINFO structure on the FAT32 volume is not in sync, this function can return an incorrect free cluster count. To avoid this problem, FatFs can be forced full FAT scan by <tt><a href="config.html#fs_nofsinfo">_FS_NOFSINFO</a></tt> option.</p>\r
+<p>The <tt>f_getfree</tt> function gets number of free clusters on the volume. The member <tt>csize</tt> in the filesystem object indicates number of sectors per cluster, so that the free space in unit of sector can be calcurated with this information. When FSINFO structure on the FAT32 volume is not in sync, this function can return an incorrect free cluster count. To avoid this problem, FatFs can be forced full FAT scan by <tt><a href="config.html#fs_nofsinfo">FF_FS_NOFSINFO</a></tt> option.</p>\r
 </div>\r
 \r
 \r
 <div class="para comp">\r
 <h4>QuickInfo</h4>\r
-<p>Available when <tt>_FS_READONLY == 0</tt> and <tt>_FS_MINIMIZE == 0</tt>.</p>\r
+<p>Available when <tt><a href="config.html#fs_readonly">FF_FS_READONLY</a> == 0</tt> and <tt><a href="config.html#fs_minimize">FF_FS_MINIMIZE</a> == 0</tt>.</p>\r
 </div>\r
 \r
 \r
@@ -71,7 +71,7 @@ FRESULT f_getfree (
 \r
 \r
     <span class="c">/* Get volume information and free clusters of drive 1 */</span>\r
-    res = f_getfree("1:", &amp;fre_clust, &amp;fs);\r
+    res = <em>f_getfree</em>("1:", &amp;fre_clust, &amp;fs);\r
     if (res) die(res);\r
 \r
     <span class="c">/* Get total sectors and free sectors */</span>\r
@@ -79,8 +79,7 @@ FRESULT f_getfree (
     fre_sect = fre_clust * fs->csize;\r
 \r
     <span class="c">/* Print the free space (assuming 512 bytes/sector) */</span>\r
-    printf("%10lu KiB total drive space.\n%10lu KiB available.\n",\r
-           tot_sect / 2, fre_sect / 2);\r
+    printf("%10lu KiB total drive space.\n%10lu KiB available.\n", tot_sect / 2, fre_sect / 2);\r
 </pre>\r
 </div>\r
 \r