Close a directory.
Syntax
#include <dirent.h>
void closedir (DIR *d);
Parameters
-
d
A pointer to a
DIR
structure opened withopendir
.
Return Value
This function does not return any status code. However, errno may still be set on error:
-
EBADF
Bad file descriptor. The
DIR
structure was already closed, or an internal API error occured.
Remarks
None