Pyrogenesis  trunk
dirent.h
Go to the documentation of this file.
1 #ifndef DIRENT_INCLUDED
2 #define DIRENT_INCLUDED
3 
4 /*
5 
6  Declaration of POSIX directory browsing functions and types for Win32.
7 
8  Author: Kevlin Henney (kevlin@acm.org, kevlin@curbralan.com)
9  History: Created March 1997. Updated June 2003.
10  Rights: See end of file.
11 
12 */
13 
14 #ifdef __cplusplus
15 extern "C"
16 {
17 #endif
18 
19 typedef struct DIR DIR;
20 
21 struct dirent
22 {
23  char *d_name;
24 };
25 
26 DIR *opendir(const char *);
27 int closedir(DIR *);
28 struct dirent *readdir(DIR *);
29 void rewinddir(DIR *);
30 
31 /*
32 
33  Copyright Kevlin Henney, 1997, 2003. All rights reserved.
34 
35  Permission to use, copy, modify, and distribute this software and its
36  documentation for any purpose is hereby granted without fee, provided
37  that this copyright and permissions notice appear in all copies and
38  derivatives.
39 
40  This software is supplied "as is" without express or implied warranty.
41 
42  But that said, if there are any problems please get in touch.
43 
44 */
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif
int closedir(DIR *)
Definition: dirent.c:76
Definition: dirent.h:21
Definition: dirent.c:26
DIR * opendir(const char *)
Definition: dirent.c:34
char * d_name
Definition: dirent.h:23
void rewinddir(DIR *)
Definition: dirent.c:119
struct dirent * readdir(DIR *)
Definition: dirent.c:99