home *** CD-ROM | disk | FTP | other *** search
- /***
- *conio.h - console and port I/O declarations
- *
- * Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
- *
- *Purpose:
- * This include file contains the function declarations for
- * the MS C V2.03 compatible console and port I/O routines.
- *
- ****/
-
- #ifndef _INC_CONIO
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if defined(_DLL) && !defined(_MT)
- #error Cannot define _DLL without _MT
- #endif
-
- #ifdef _MT
- #define _FAR_ __far
- #else
- #define _FAR_
- #endif
-
- #if (_MSC_VER <= 600)
- #define __cdecl _cdecl
- #define __far _far
- #define __loadds _loadds
- #endif
-
- /* function prototypes */
-
- #ifndef _WINDOWS
- char _FAR_ * _FAR_ __cdecl _cgets(char _FAR_ *);
- int _FAR_ __cdecl _cprintf(const char _FAR_ *, ...);
- int _FAR_ __cdecl _cputs(const char _FAR_ *);
- int _FAR_ __cdecl _cscanf(const char _FAR_ *, ...);
- int _FAR_ __cdecl _getch(void);
- int _FAR_ __cdecl _getche(void);
- #endif
- int _FAR_ __cdecl _inp(unsigned);
- unsigned _FAR_ __cdecl _inpw(unsigned);
- #ifndef _WINDOWS
- int _FAR_ __cdecl _kbhit(void);
- #endif
- int _FAR_ __cdecl _outp(unsigned, int);
- unsigned _FAR_ __cdecl _outpw(unsigned, unsigned);
- #ifndef _WINDOWS
- int _FAR_ __cdecl _putch(int);
- int _FAR_ __cdecl _ungetch(int);
- #endif
-
- #ifndef __STDC__
- /* Non-ANSI names for compatibility */
- #ifndef _WINDOWS
- char _FAR_ * _FAR_ __cdecl cgets(char _FAR_ *);
- int _FAR_ __cdecl cprintf(const char _FAR_ *, ...);
- int _FAR_ __cdecl cputs(const char _FAR_ *);
- int _FAR_ __cdecl cscanf(const char _FAR_ *, ...);
- int _FAR_ __cdecl getch(void);
- int _FAR_ __cdecl getche(void);
- #endif
- int _FAR_ __cdecl inp(unsigned);
- unsigned _FAR_ __cdecl inpw(unsigned);
- #ifndef _WINDOWS
- int _FAR_ __cdecl kbhit(void);
- #endif
- int _FAR_ __cdecl outp(unsigned, int);
- unsigned _FAR_ __cdecl outpw(unsigned, unsigned);
- #ifndef _WINDOWS
- int _FAR_ __cdecl putch(int);
- int _FAR_ __cdecl ungetch(int);
- #endif
- #endif /* __STDC__ */
-
- #ifdef __cplusplus
- }
- #endif
-
- #define _INC_CONIO
- #endif /* _INC_CONIO */
-