[#AllocateFileRange]
= AllocateFileRange
:mrdocs:

Pre&hyphen;allocate a range of a file so later writes into it do not fragment or fail&period;

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *file* [in]
| The open file to extend&period;
| *offset* [in]
| The starting byte offset of the range to allocate&period;
| *length* [in]
| The number of bytes to allocate from the offset&period;
|===


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