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

  1. /***
  2. *conio.h - console and port I/O declarations
  3. *
  4. *    Copyright (c) 1985-1991, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *    This include file contains the function declarations for
  8. *    the MS C V2.03 compatible console and port I/O routines.
  9. *
  10. ****/
  11.  
  12. #ifndef _INC_CONIO
  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. /* function prototypes */
  35.  
  36. #ifndef _WINDOWS
  37. char _FAR_ * _FAR_ __cdecl _cgets(char _FAR_ *);
  38. int _FAR_ __cdecl _cprintf(const char _FAR_ *, ...);
  39. int _FAR_ __cdecl _cputs(const char _FAR_ *);
  40. int _FAR_ __cdecl _cscanf(const char _FAR_ *, ...);
  41. int _FAR_ __cdecl _getch(void);
  42. int _FAR_ __cdecl _getche(void);
  43. #endif
  44. int _FAR_ __cdecl _inp(unsigned);
  45. unsigned _FAR_ __cdecl _inpw(unsigned);
  46. #ifndef _WINDOWS
  47. int _FAR_ __cdecl _kbhit(void);
  48. #endif
  49. int _FAR_ __cdecl _outp(unsigned, int);
  50. unsigned _FAR_ __cdecl _outpw(unsigned, unsigned);
  51. #ifndef _WINDOWS
  52. int _FAR_ __cdecl _putch(int);
  53. int _FAR_ __cdecl _ungetch(int);
  54. #endif
  55.  
  56. #ifndef __STDC__
  57. /* Non-ANSI names for compatibility */
  58. #ifndef _WINDOWS
  59. char _FAR_ * _FAR_ __cdecl cgets(char _FAR_ *);
  60. int _FAR_ __cdecl cprintf(const char _FAR_ *, ...);
  61. int _FAR_ __cdecl cputs(const char _FAR_ *);
  62. int _FAR_ __cdecl cscanf(const char _FAR_ *, ...);
  63. int _FAR_ __cdecl getch(void);
  64. int _FAR_ __cdecl getche(void);
  65. #endif
  66. int _FAR_ __cdecl inp(unsigned);
  67. unsigned _FAR_ __cdecl inpw(unsigned);
  68. #ifndef _WINDOWS
  69. int _FAR_ __cdecl kbhit(void);
  70. #endif
  71. int _FAR_ __cdecl outp(unsigned, int);
  72. unsigned _FAR_ __cdecl outpw(unsigned, unsigned);
  73. #ifndef _WINDOWS
  74. int _FAR_ __cdecl putch(int);
  75. int _FAR_ __cdecl ungetch(int);
  76. #endif
  77. #endif    /* __STDC__ */
  78.  
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82.  
  83. #define _INC_CONIO
  84. #endif    /* _INC_CONIO */
  85.