From 5366852335044c1e68a5c32548d3051cc943552f Mon Sep 17 00:00:00 2001 From: Leo C Date: Tue, 19 Aug 2014 15:31:33 +0200 Subject: Import fatfs R0.10b FatFs Module Source Files R0.10b Author: (C)ChaN, 2014 (http://elm-chan.org) URL: http://elm-chan.org/fsw/ff/ff10b.zip --- fatfs/doc/en/truncate.html | 66 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 fatfs/doc/en/truncate.html (limited to 'fatfs/doc/en/truncate.html') diff --git a/fatfs/doc/en/truncate.html b/fatfs/doc/en/truncate.html new file mode 100644 index 0000000..7dc980d --- /dev/null +++ b/fatfs/doc/en/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_NOT_READY, +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 _FS_READONLY == 0 and _FS_MINIMIZE == 0.
+