fatfs v0.05 Aug 25, 2007:

- Changed arguments of f_read, f_write.
- Changed arguments of f_mkfs. (FatFs)
- Fixed f_mkfs on FAT32 creates incorrect FSInfo. (FatFs)
- Fixed f_mkdir on FAT32 creates incorrect directory. (FatFs)
This commit is contained in:
savelij13 committed 2025-09-11 09:10:56 +03:00
1 parent c0c10d0bea
commit 36c173e705
34 files changed
+461 -225

No files matched your search

+2 -2
View File
@@ -49,7 +49,7 @@ FRESULT f_lseek (
<div class="para">
<h4>Description</h4>
<p>The f_lseek function moves the file R/W pointer of an open file. The offset can be specified in only origin from top of the file. When an offset above the file size is specified in write mode, the file is extended to the offset and the data in the extended area is undefined. After the function succeeded, member fptr in the file object should be checked in order to make sure the R/W pointer has been moved correctry. In case of fptr is less than Offset, any of the followings has been occured.</p>
<p>The f_lseek function moves the file R/W pointer of an open file. The offset can be specified in only origin from top of the file. When an offset above the file size is specified in write mode, the file size is extended to the offset and the data in the extended area is undefined. This is suitable to create a large file quickly, for fast write operation without cluster allocation delay. After the f_lseek function succeeded, member fptr in the file object should be checked in order to make sure the R/W pointer has been moved correctry. In case of fptr is less than Offset, any of the followings has been occured.</p>
<ul>
<li>In read-only mode, the Offset was clipped in file size.</li>
<li>The drive gets full during the file extending process.</li>
@@ -70,7 +70,7 @@ FRESULT f_lseek (
// Rewind 2000 bytes (take care on overflow)
res = f_lseek(&file, file.fptr - 2000);
// Move to end of the file
// Move to end of the file to append data
res = f_lseek(&file, file.fsize);
</pre>
</div>