[#TruncateFile] = TruncateFile :mrdocs: Truncate a file to the given length. == Synopsis Declared in `<util/fs_helpers.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool TruncateFile( FILE* file, unsigned int length); ---- == Return Value true if the file was truncated successfully. == Parameters [cols="1,4"] |=== | Name| Description | *file* [in] | The open file to truncate. | *length* [in] | The new file size in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#