Computer Science


CLOSEDIR(3)         Linux Programmer's Manual         CLOSEDIR(3)

NAME
       closedir - close a directory

SYNOPSIS
       #include <sys/types.h>

       #include <dirent.h>

       int closedir(DIR *dir);

DESCRIPTION
       The  closedir() function closes the directory stream asso-
       ciated with dir.  The directory stream descriptor  dir  is
       not available after this call.

RETURN VALUE
       The  closedir()  function  returns  0  on success or -1 on
       failure.

ERRORS
       EBADF  Invalid directory stream descriptor dir.

CONFORMING TO
       SVID 3, POSIX, BSD 4.3

SEE ALSO
       close(2),    opendir(3),     readdir(3),     rewinddir(3),
       seekdir(3), telldir(3), scandir(3)

                           11 June 1995                         1

Back to the index


Apply now!


Handbook

Postgraduate study options

Computer Science Blog



Please give us your feedback or ask us a question

This message is...


My feedback or question is...


My email address is...

(Only if you need a reply)

A to Z Directory | Site map | Accessibility | Copyright | Privacy | Disclaimer | Feedback on this page