![]() Chapter Contents |
![]() Previous |
![]() Next |
| closedir |
| Portability: | POSIX.1 conforming, UNIX compatible |
| SYNOPSIS | |
| DESCRIPTION | |
| RETURN VALUE | |
| EXAMPLE | |
| RELATED FUNCTIONS | |
| SEE ALSO |
| SYNOPSIS |
#include <sys/types.h> #include <dirent.h> int closedir(DIR *dir);
| DESCRIPTION |
closedir
closes a directory.
dir
is the value returned
by a previous call to
opendir
that opened
the directory.
| RETURN VALUE |
closedir
returns 0 if it is successful and -1 if it is not successful.
| EXAMPLE |
See the example for
rewinddir
.
| RELATED FUNCTIONS |
| SEE ALSO |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.