[#FileCommit]
= FileCommit
:mrdocs:

Ensure file contents are fully committed to disk, using a platform&hyphen;specific feature analogous to fsync()&period;

== Synopsis

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

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

== Return Value

true if the contents were committed successfully&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *file* [in]
| The open file whose contents should be flushed to disk&period;
|===


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