-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmsdirent.hpp
More file actions
61 lines (45 loc) · 1.53 KB
/
Copy pathmsdirent.hpp
File metadata and controls
61 lines (45 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* this is only needed if _MSC_VER is defined */
/* other compilers - at least GNU - should have their own dirent.h */
#ifdef _MSC_VER
#ifndef DIRENT_INCLUDED
#define DIRENT_INCLUDED
/*
Declaration of POSIX directory browsing functions and types for Win32.
Author: Kevlin Henney (kevlin@acm.org, kevlin@curbralan.com)
History: Created March 1997. Updated June 2003.
Rights: See end of file.
*/
#ifdef __cplusplus
extern "C"
{
#endif /* */
//typedef struct DIR DIR;
struct dirent
{
char *d_name;
};
typedef struct DIR
{
long handle; /* -1 for failed rewind */
struct _finddata_t info;
struct dirent result; /* d_name null iff first time */
char *name; /* null-terminated char string */
} DIR;
DIR *opendir (const char *);
int closedir (DIR *);
struct dirent *readdir (DIR *);
void rewinddir (DIR *);
/*
Copyright Kevlin Henney, 1997, 2003. All rights reserved.
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose is hereby granted without fee, provided
that this copyright and permissions notice appear in all copies and
derivatives.
This software is supplied "as is" without express or implied warranty.
But that said, if there are any problems please get in touch.
*/
#ifdef __cplusplus
}
#endif /* */
#endif /* */
#endif //_MSC_VER