[#BloombergLP-bdls-FilesystemUtil-close]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::close
:relfileprefix: ../../../
:mrdocs:

Close the specified `descriptor`&period; Return 0 on success and a non&hyphen;zero value otherwise&period; A return value of `k&lowbar;BAD&lowbar;FILE&lowbar;DESCRIPTOR` indicates that the supplied `descriptor` is invalid&period;

== Synopsis

Declared in `&lt;bdls&lowbar;filesystemutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
close(xref:BloombergLP/bdls/FilesystemUtil/FileDescriptor.adoc[FileDescriptor] descriptor);
----


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