Next Previous Contents

3.148 opendir

Function

Open a directory.

Header

dirent.h

Declaration

DIR* __fastcall__ opendir (const char* name);

Description

opendir opens a directory and returns the direcory descriptor associated with it. On error, NULL is returned and an error code is stored in errno.

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

closedir, readdir

Example

None.


Next Previous Contents