You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
795 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* vi: set ts=8 sw=4 : */
  2. /********************************************************************\
  3. *File : dirent.h
  4. *
  5. *Subject:
  6. * Substitution of Unix dirent.h for Win32
  7. *
  8. *Authors:
  9. * SAA Anatoli Soltan
  10. *
  11. *HISTORY:
  12. * Feb 18 1997 SAA
  13. * initial implementation; struct dirent has only
  14. * one field: d_name
  15. * Mar 15 2000 SAA added __cplusplus condition
  16. *********************************************************************/
  17. #ifndef __DIRENT_H
  18. #define __DIRENT_H
  19. #include <stdlib.h> /* _MAX_FNAME */
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. struct dirent
  24. {
  25. char d_name[_MAX_FNAME];
  26. };
  27. struct _DIR;
  28. typedef struct _DIR DIR;
  29. DIR* opendir(const char* name);
  30. struct dirent* readdir(DIR* dir);
  31. int closedir(DIR* dir);
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif /* __DIRENT_H */