<< Previous | Next >> | |
|
int fat_Truncate( FATfile *file, long where );
Description
- Truncates the file at
where
and frees any left over allocated clusters. The file must be aFAT_FILE
type.Parameters
Return Value
0
: success.
-EIO
: device I/O error.
-EINVAL
:file
is invalid.
-EPERM
:file
is in use, write-protected, hidden, or system.
-ENOENT
: the file does not exist.
-ETYPE
:file
is not a FAT file type.
-EBUSY
: the device is busy (Only if non-blocking).
-EFSTATE
: if file in inappropriate state (Only if non-blocking)Library
- FAT.LIB
See Also
- fat_Open, fat_OpenDir, fat_Delete, fat_Split
Dynamic C Functions | << Previous | Next >> | rabbit.com |