blob: a02a0d828a7605822f733228a3eeaf8a27d48509 [file] [log] [blame]
Ian Elliott2d4ab1e2015-01-13 17:52:38 -07001#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