fatfs v0.06 Apr 01, 2008:

- Added f_forward(). (Tiny-FatFs)
- Added string functions: fputc(), fputs(), fprintf() and fgets().
- Improved performance of f_lseek() on move to the same or following cluster.
This commit is contained in:
savelij13 committed 2025-09-11 09:17:24 +03:00
1 parent e400c8c902
commit b94c8f3bf3
72 files changed
+1804 -536

No files matched your search

+4 -4
View File
@@ -56,7 +56,7 @@ FRESULT f_getfree (
<div class="para">
<h4>Descriptions</h4>
<p>The f_getfree function gets number of free clusters on the drive. The <tt>sects_clust</tt> member in the file system object is refreting number of sectors per cluster, so that the free space in unit of sector can be calcurated with this. When <tt>_USE_FSINFO</tt> option is enabled, this function might return an inaccurate free cluster count on FAT32 volume. When it is disabled, this function will take a time on FAT32 volume.</p>
<p>The f_getfree function gets number of free clusters on the drive. The member <tt>csize</tt> in the file system object is refreting number of sectors per cluster, so that the free space in unit of sector can be calcurated with this. When <tt>_USE_FSINFO</tt> option is enabled, this function might return an inaccurate free cluster count on FAT32 volume. When it is disabled, this function will take a time on FAT32 volume.</p>
<p>This function is not supported in read-only configuration and minimization level of &gt;= 1.</p>
</div>
@@ -69,14 +69,14 @@ FRESULT f_getfree (
// Get free clusters
res = f_getfree("", &clust, &fs);
res = f_getfree("", &amp;clust, &amp;fs);
if (res) die(res);
// Get free space
printf("%lu KB total disk space.\n"
"%lu KB available on the disk.\n",
(DWORD)(fs->max_clust - 2) * fs->sects_clust / 2,
clust * fs->sects_clust / 2);
(DWORD)(fs->max_clust - 2) * fs->csize / 2,
clust * fs->csize / 2);
</pre>
</div>