[#TruncateFile]
= TruncateFile
:mrdocs:

Truncate a file to the given length&period;

== Synopsis

Declared in `&lt;util&sol;fs&lowbar;helpers&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
TruncateFile(
    FILE* file,
    unsigned int length);
----

== Return Value

true if the file was truncated successfully&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *file* [in]
| The open file to truncate&period;
| *length* [in]
| The new file size in bytes&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
