home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c045 / 2.ddi / INCLUDE / DIRECT.H$ / DIRECT.bin
Encoding:
Text File  |  1992-01-01  |  1.4 KB  |  63 lines

  1. /***
  2. *direct.h - function declarations for directory handling/creation
  3. *
  4. *    Copyright (c) 1985-1991, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *    This include file contains the function declarations for the library
  8. *    functions related to directory handling and creation.
  9. *
  10. ****/
  11.  
  12. #ifndef _INC_DIRECT
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. #if defined(_DLL) && !defined(_MT)
  19. #error Cannot define _DLL without _MT
  20. #endif
  21.  
  22. #ifdef _MT
  23. #define _FAR_ __far
  24. #else
  25. #define _FAR_
  26. #endif
  27.  
  28. #if (_MSC_VER <= 600)
  29. #define __cdecl     _cdecl
  30. #define __far       _far
  31. #define __loadds    _loadds
  32. #endif
  33.  
  34. #ifndef _SIZE_T_DEFINED
  35. typedef unsigned int size_t;
  36. #define _SIZE_T_DEFINED
  37. #endif
  38.  
  39. /* function prototypes */
  40.  
  41. int _FAR_ __cdecl _chdir(const char _FAR_ *);
  42. int _FAR_ __cdecl _chdrive(int);
  43. char _FAR_ * _FAR_ __cdecl _getcwd(char _FAR_ *, int);
  44. char _FAR_ * _FAR_ __cdecl _getdcwd(int, char _FAR_ *, int);
  45. int _FAR_ __cdecl _getdrive(void);
  46. int _FAR_ __cdecl _mkdir(const char _FAR_ *);
  47. int _FAR_ __cdecl _rmdir(const char _FAR_ *);
  48.  
  49. #ifndef __STDC__
  50. /* Non-ANSI names for compatibility */
  51. int _FAR_ __cdecl chdir(const char _FAR_ *);
  52. char _FAR_ * _FAR_ __cdecl getcwd(char _FAR_ *, int);
  53. int _FAR_ __cdecl mkdir(const char _FAR_ *);
  54. int _FAR_ __cdecl rmdir(const char _FAR_ *);
  55. #endif
  56.  
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60.  
  61. #define _INC_DIRECT
  62. #endif    /* _INC_DIRECT */
  63.