Synesis Software

dirent.h File Reference


Detailed Description

Contains the declarations for the opendir()/readdir() API.

#include <stddef.h>

Go to the source code of this file.

Classes

struct  dirent
 Results structure for readdir(). More...
struct  wdirent
 Results structure for wreaddir(). More...

Defines

#define NAME_MAX   (260)
 The maximum number of characters (including null terminator) in a directory entry name.

Typedefs

typedef struct dirent_dir DIR
 Handle type for ANSI directory enumeration.
typedef struct wdirent_dir wDIR
 Handle type for Unicode directory enumeration.

Functions

DIRopendir (char const *name)
 Returns a pointer to the next directory entry.
wDIRwopendir (wchar_t const *name)
 Identical semantics to opendir(), but for Unicode searches.
int closedir (DIR *dir)
 Closes a directory handle.
int wclosedir (wDIR *dir)
 Identical semantics to closedir(), but for Unicode searches.
void rewinddir (DIR *dir)
 Resets a directory search position.
void wrewinddir (wDIR *dir)
 Identical semantics to rewinddir(), but for Unicode searches.
struct direntreaddir (DIR *dir)
 Returns a pointer to the next directory entry.
struct wdirentwreaddir (wDIR *dir)
 Identical semantics to readdir(), but for Unicode searches.

UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2002-2007