Closes a specified directory
#include <dirent.h>
int closedir (
DIR *dirP);
Specifies the directory to be closed.
closedir closes the directory specified by the dirP parameter and frees the memory allocated by the opendir function. All open directories are automatically closed when an NLMâ„¢ application is terminated.