Next Previous Contents

3.64 closedir

Function

Close a directory.

Header

dirent.h

Declaration

int __fastcall__ closedir (DIR* dir);

Description

The function closes the given directory descriptor. It returns zero on success and -1 on error. If an error occurs, the cause can be determined by reading the errno variable.

Limits

  • The function is only available as fastcall function, so it may only be used in presence of a prototype.

Availability

POSIX 1003.1

See also

opendir, readdir

Example

None.


Next Previous Contents