home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c063 / 1.ddi / INCLUDE.ZIP / DIR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-18  |  2.1 KB  |  79 lines

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