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
15extern "C"
16{
17#endif
18
19typedef struct DIR DIR;
20
21struct dirent
22{
23 char *d_name;
24};
25
26DIR *opendir(const char *);
27int closedir(DIR *);
28struct dirent *readdir(DIR *);
29void 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
void rewinddir(DIR *)
Definition: dirent.c:119
struct dirent * readdir(DIR *)
Definition: dirent.c:99
DIR * opendir(const char *)
Definition: dirent.c:34
Definition: dirent.c:27
Definition: dirent.h:22
char * d_name
Definition: dirent.h:23