1CLOSEDIR(3)                Linux Programmer's Manual               CLOSEDIR(3)
2
3
4

NAME

6       closedir - close a directory
7

SYNOPSIS

9       #include <sys/types.h>
10
11       #include <dirent.h>
12
13       int closedir(DIR *dir);
14

DESCRIPTION

16       The  closedir()  function  closes  the directory stream associated with
17       dir.  The directory stream descriptor dir is not available  after  this
18       call.
19

RETURN VALUE

21       The  closedir()  function  returns  0  on  success.   On  error,  -1 is
22       returned, and errno is set appropriately.
23

ERRORS

25       EBADF  Invalid directory stream descriptor dir.
26

CONFORMING TO

28       SVr4, POSIX.1-2001, 4.3BSD
29

SEE ALSO

31       close(2), opendir(3), readdir(3), rewinddir(3), scandir(3), seekdir(3),
32       telldir(3)
33
34
35
36                                  1995-06-11                       CLOSEDIR(3)
Impressum