[#AutoFile-fclose] = xref:AutoFile.adoc[AutoFile]::fclose :relfileprefix: ../ :mrdocs: Close the wrapped file early and return the C `fclose` result. == Synopsis Declared in `<streams.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] int fclose(); ---- == Return Value The result of the C `fclose` call, or 0 if no file was open. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#