home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c021 / 7.img / INCLUDE.ZIP / DIR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-04  |  1.6 KB  |  69 lines

  1. /*    dir.h
  2.  
  3.     Defines structures, macros, and functions for dealing with
  4.     directories and pathnames.
  5.  
  6.         Copyright (c) Borland International 1987,1988,1990
  7.     All Rights Reserved.
  8. */
  9. #if __STDC__
  10. #define _Cdecl
  11. #else
  12. #define _Cdecl    cdecl
  13. #endif
  14.  
  15. #ifndef __PAS__
  16. #define _CType _Cdecl
  17. #else
  18. #define _CType pascal
  19. #endif
  20.  
  21. #if     !defined(__DIR_DEF_)
  22. #define __DIR_DEF_
  23.  
  24. struct    ffblk    {
  25.     char        ff_reserved[21];
  26.     char        ff_attrib;
  27.     unsigned    ff_ftime;
  28.     unsigned    ff_fdate;
  29.     long        ff_fsize;
  30.     char        ff_name[13];
  31. };
  32.  
  33. #define WILDCARDS 0x01
  34. #define EXTENSION 0x02
  35. #define FILENAME  0x04
  36. #define DIRECTORY 0x08
  37. #define DRIVE      0x10
  38.  
  39. #define MAXPATH   80
  40. #define MAXDRIVE  3
  41. #define MAXDIR      66
  42. #define MAXFILE   9
  43. #define MAXEXT      5
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48. int     _Cdecl chdir        (const char *__path);
  49. int     _CType findfirst    (const char *__path, struct ffblk *__ffblk, 
  50.                  int __attrib);
  51. int     _CType findnext    (struct ffblk *__ffblk);
  52. void     _CType fnmerge        (char *__path,const char *__drive,const char *__dir,
  53.                  const char *__name, const char *__ext);
  54. int     _CType fnsplit        (const char *__path, char *__drive, char *__dir, 
  55.                  char *__name, char *__ext);
  56. int     _Cdecl getcurdir    (int __drive, char *__directory);
  57. char    *_Cdecl getcwd        (char *__buf, int __buflen);
  58. int     _Cdecl getdisk        (void);
  59. int     _Cdecl mkdir        (const char *__path);
  60. char    *_Cdecl mktemp        (char *__template);
  61. int     _Cdecl rmdir        (const char *__path);
  62. char    *_CType searchpath    (const char *__file);
  63. int     _Cdecl setdisk        (int __drive);
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67.  
  68. #endif
  69.