home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / ThinkCPosix 1.1 / sys⁄dir.h < prev    next >
Encoding:
Text File  |  1993-02-20  |  385 b   |  27 lines  |  [TEXT/MACA]

  1. /* $Id: $ */
  2.  
  3. /*
  4.  * "Dir.h" for the Macintosh.
  5.  * Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
  6.  */
  7.  
  8. #pragma once
  9.  
  10. #ifdef THINK_C
  11. #include <stdio.h>
  12. #endif /* THINK_C */
  13.  
  14. typedef struct {
  15.     long dirid;
  16.     int nextfile;
  17. } DIR;
  18.  
  19. struct direct {
  20.     char d_name[FILENAME_MAX];
  21. };
  22.  
  23. DIR *opendir(char *);
  24. struct dirent *readdir(DIR *);
  25. int closedir(DIR *);
  26. void rewinddir(DIR*);
  27.