Truncate a file to the given length.
Declared in <util/fs_helpers.h>
bool
TruncateFile(
FILE* file,
unsigned int length);
true if the file was truncated successfully.
| Name | Description |
|---|---|
| file [in] | The open file to truncate. |
| length [in] | The new file size in bytes. |