opendir -- Open Directory

SYNOPSIS

 #include <sys/types.h>
 #include <dirent.h>

 DIR *opendir(char *dirname);
 

DESCRIPTION

opendir opens an OpenEdition directory to be read by readdir. The dirname function is the name of the directory to be read. The dirname must specify the name of a file in the OpenEdition hierarchical file system. For information on specifying OpenEdition filenames, see File Naming Conventions .

RETURN VALUE

If it is successful, opendir returns a pointer to a DIR object that describes the directory. If it is unsuccessful, opendir returns a NULL pointer.

EXAMPLE

The example for rewinddir also demonstrates the use of the opendir function.

RELATED FUNCTIONS

cmsdfind, open, osdfind,readdir, rewinddir

SEE ALSO


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