root/library/bdm/dirent.h
@
661
Revision 661, 1.2 kB (checked in by smidl, 15 years ago) |
---|
Rev | Line | |
---|---|---|
[469] | 1 | #ifndef DIRENT_INCLUDED |
2 | #define DIRENT_INCLUDED | |
3 | ||
[661] | 4 | /*! \file |
[469] | 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. | |
[477] | 11 | |
[469] | 12 | */ |
13 | ||
14 | #ifdef __cplusplus | |
[477] | 15 | extern "C" { |
[469] | 16 | #endif |
17 | ||
[661] | 18 | //!DIR |
[477] | 19 | typedef struct DIR DIR; |
[469] | 20 | |
[661] | 21 | //! dirent |
[477] | 22 | struct dirent { |
23 | char *d_name; | |
24 | }; | |
[469] | 25 | |
[661] | 26 | //! Unix opendir function |
[477] | 27 | DIR *opendir ( const char * ); |
[661] | 28 | //! Unix closedir function |
[477] | 29 | int closedir ( DIR * ); |
[661] | 30 | //! Unix readdir function |
[477] | 31 | struct dirent *readdir ( DIR * ); |
[661] | 32 | //! Unix rewinddir function |
[477] | 33 | void rewinddir ( DIR * ); |
[469] | 34 | |
[477] | 35 | /* |
[469] | 36 | |
[477] | 37 | Copyright Kevlin Henney, 1997, 2003. All rights reserved. |
[469] | 38 | |
[477] | 39 | Permission to use, copy, modify, and distribute this software and its |
40 | documentation for any purpose is hereby granted without fee, provided | |
41 | that this copyright and permissions notice appear in all copies and | |
42 | derivatives. | |
[469] | 43 | |
[477] | 44 | This software is supplied "as is" without express or implied warranty. |
[469] | 45 | |
[477] | 46 | But that said, if there are any problems please get in touch. |
[469] | 47 | |
[477] | 48 | */ |
49 | ||
[469] | 50 | #ifdef __cplusplus |
51 | } | |
52 | #endif | |
53 | ||
54 | #endif |
Note: See TracBrowser
for help on using the browser.