Go to the first, previous, next, last section, table of contents.
#include <dirent.h> extern int __opendir_flags; DIR *opendir(char *name);
This function "opens" a directory so that you can read the list of file
names in it. The pointer returned must be passed to closedir
when you are done with it. See section readdir.
The global variable __opendir_flags
can be set to include the
following values to control the operation of opendir
:
__OPENDIR_PRESERVE_CASE
__OPENDIR_NO_HIDDEN
__OPENDIR_FIND_HIDDEN
__OPENDIR_FIND_LABEL
You can simply put `int __opendir_flags = ...;' in your code. The default is to let it get set to zero as an uninitialized variable.
The open directory structure, or NULL
on error.
not ANSI, POSIX (see note 1)
Notes:
__opendir_flags
variable is DJGPP-specific.
DIR *d = opendir("."); closedir(d);
Go to the first, previous, next, last section, table of contents.