

#include <sys/types.h> #include <dirent.h> int closedir(DIR *dir);
closedir closes a directory. dir is the value returned
by a previous call to opendir that opened the directory.
closedir returns 0 if it is successful and - 1 if it is not
successful.
rewinddir.
opendir
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.