Close a directory.
Syntax
#include <dirent.h>
void closedir (DIR *d);
Parameters
-
dA pointer to a
DIRstructure 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
DIRstructure was already closed, or an internal API error occured.
Remarks
None