closedir -- Close Directory

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

opendir

SEE ALSO


Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.