TruncateFile

Truncate a file to the given length.

Synopsis

Declared in <util/fs_helpers.h>

bool
TruncateFile(
    FILE* file,
    unsigned int length);

Return Value

true if the file was truncated successfully.

Parameters

NameDescription
file [in]The open file to truncate.
length [in]The new file size in bytes.