Chapter Contents |
Previous |
Next |
opendir |
Portability: | POSIX.1 conforming, UNIX compatible |
SYNOPSIS | |
DESCRIPTION | |
RETURN VALUE | |
EXAMPLE | |
RELATED FUNCTIONS | |
SEE ALSO |
SYNOPSIS |
#include <sys/types.h> #include <dirent.h> DIR *opendir(char *dirname);
DESCRIPTION |
opendir
opens an USS 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 USS hierarchical file system. For information
on specifying USS 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 |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.