/
FSFile_Truncate()
FSFile_Truncate()
void FSFile_Truncate (FS_FILE *p_file, FS_FILE_SIZE size, FS_ERR *p_err);
File | Called from | Code enabled by |
---|---|---|
| Application; | not |
Truncate a file.
See fs_ftruncate()
for more information.
Arguments
p_file
Pointer to a file.
size
Size of the file after truncation
p_err
Pointer to variable that will the receive return error code from the function:
FS_ERR_NONE
File truncated successfully.
FS_ERR_NULL_PTR
Argument p_file
passed a NULL pointer.
FS_ERR_INVALID_TYPE
Argument p_file
's type is invalid or unknown.
FS_ERR_FILE_NOT_OPEN
File not open.
Returned Value
None.
Notes/Warnings
None.
, multiple selections available,
Related content
fs_ftruncate()
fs_ftruncate()
More like this
FSFile_ClrErr()
FSFile_ClrErr()
More like this
FSFile_Wr()
FSFile_Wr()
More like this
FSFile_PosGet()
FSFile_PosGet()
More like this
FSFile_BufFlush()
FSFile_BufFlush()
More like this
FSFile_Rd()
FSFile_Rd()
More like this