X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/b4e3fab85fcd9f5b1502ec991c81302b910492d3..0f3b947bda5f34662a611272b9f12199e0da9aca:/fatfs/documents/doc/truncate.html diff --git a/fatfs/documents/doc/truncate.html b/fatfs/documents/doc/truncate.html new file mode 100644 index 0000000..0ac012f --- /dev/null +++ b/fatfs/documents/doc/truncate.html @@ -0,0 +1,66 @@ + + +
+ + + + + +The f_truncate function truncates the file size.
++FRESULT f_truncate ( + FIL* fp /* [IN] File object */ +); ++
+FR_OK, +FR_DISK_ERR, +FR_INT_ERR, +FR_DENIED, +FR_INVALID_OBJECT, +FR_TIMEOUT +
+The f_truncate function truncates the file size to the current file read/write pointer. This function has no effect if the file read/write pointer is already pointing end of the file.
+Available when FF_FS_READONLY == 0 and FF_FS_MINIMIZE == 0.
+