[#AutoFile-fclose]
= xref:AutoFile.adoc[AutoFile]::fclose
:relfileprefix: ../
:mrdocs:

Close the wrapped file early and return the C `fclose` result&period;

== Synopsis

Declared in `&lt;streams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
int
fclose();
----

== Return Value

The result of the C `fclose` call, or 0 if no file was open&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

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