|
|
1.1 root 1: /***
2: *conio.h - console and port I/O declarations
3: *
1.1.1.3 ! root 4: * Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
1.1 root 5: *
6: *Purpose:
7: * This include file contains the function declarations for
1.1.1.3 ! root 8: * the MS C V2.03 compatible console I/O routines.
1.1 root 9: *
10: ****/
11:
12: #ifndef _INC_CONIO
13:
14: #ifdef __cplusplus
15: extern "C" {
16: #endif
17:
18:
1.1.1.3 ! root 19: /*
! 20: * Conditional macro definition for function calling type and variable type
! 21: * qualifiers.
! 22: */
! 23: #if ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
! 24:
! 25: /*
! 26: * Definitions for MS C8-32 (386/486) compiler
! 27: */
! 28: #define _CRTAPI1 __cdecl
! 29: #define _CRTAPI2 __cdecl
! 30:
! 31: #elif ( _MSC_VER == 600 )
! 32:
! 33: /*
! 34: * Definitions for old MS C6-386 compiler
! 35: */
! 36: #define _CRTAPI1 _cdecl
! 37: #define _CRTAPI2 _cdecl
! 38: #define _M_IX86 300
! 39:
! 40: #else
! 41:
! 42: /*
! 43: * Other compilers (e.g., MIPS)
! 44: */
! 45: #define _CRTAPI1
! 46: #define _CRTAPI2
! 47:
1.1.1.2 root 48: #endif
1.1 root 49:
1.1.1.3 ! root 50:
1.1 root 51: /* function prototypes */
52:
1.1.1.3 ! root 53: char * _CRTAPI1 _cgets(char *);
! 54: int _CRTAPI2 _cprintf(const char *, ...);
! 55: int _CRTAPI1 _cputs(const char *);
! 56: int _CRTAPI2 _cscanf(const char *, ...);
! 57: int _CRTAPI1 _getch(void);
! 58: int _CRTAPI1 _getche(void);
! 59: int _CRTAPI1 _kbhit(void);
! 60: int _CRTAPI1 _putch(int);
! 61: int _CRTAPI1 _ungetch(int);
1.1 root 62:
63:
64: #if !__STDC__
65: /* Non-ANSI names for compatibility */
66: #define cgets _cgets
67: #define cprintf _cprintf
68: #define cputs _cputs
69: #define cscanf _cscanf
70: #define getch _getch
71: #define getche _getche
72: #define kbhit _kbhit
73: #define putch _putch
74: #define ungetch _ungetch
75: #endif /* __STDC__ */
76:
77: #ifdef __cplusplus
78: }
79: #endif
80:
81: #define _INC_CONIO
82: #endif /* _INC_CONIO */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.