home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / INCLUDE / CONIO.H < prev    next >
Text File  |  1993-09-17  |  3KB  |  78 lines

  1. #pragma info( none )
  2. #ifndef __CHKHDR__
  3.    #pragma info( none )
  4. #endif
  5. #pragma info( restore )
  6.  
  7. #ifndef __conio_h
  8.    #define __conio_h
  9.  
  10.    #ifdef __cplusplus
  11.       extern "C" {
  12.    #endif
  13.  
  14.    /********************************************************************/
  15.    /*  <conio.h> header file                                           */
  16.    /*                                                                  */
  17.    /*  Licensed Materials - Property of IBM                            */
  18.    /*                                                                  */
  19.    /*  IBM C/C++ Tools Version 2.01                                    */
  20.    /*  Copyright (C) International Business Machines Corp., 1991,1993  */
  21.    /*  All rights reserved                                             */
  22.    /*                                                                  */
  23.    /*  US Government Users Restricted Rights -                         */
  24.    /*  Use, duplication, or disclosure restricted                      */
  25.    /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  26.    /*                                                                  */
  27.    /********************************************************************/
  28.  
  29.    #if defined(__EXTENDED__)
  30.  
  31.       char * _Optlink _cgets( char * );
  32.       int    _Optlink _cprintf( char *, ... );
  33.       int    _Optlink _cputs( char * );
  34.       int    _Optlink _cscanf( char *, ... );
  35.       int    _Optlink _getch( void );
  36.       int    _Optlink _getche( void );
  37.       int    _Optlink _kbhit( void );
  38.       int    _Optlink _putch( int );
  39.       int    _Optlink _ungetch( int );
  40.  
  41.       int            _Builtin __inpb( const unsigned int );
  42.       unsigned short _Builtin __inpw( const unsigned int );
  43.       unsigned long  _Builtin __inpd( const unsigned int );
  44.       int            _Builtin __outpb( const unsigned int, const int );
  45.       unsigned short _Builtin __outpw( const unsigned int, const unsigned short );
  46.       unsigned long  _Builtin __outpd( const unsigned int, const unsigned long );
  47.  
  48.       #define _inp( x )       __inpb( x )
  49.       #define _inpw( x )      __inpw( x )
  50.       #define _inpd( x )      __inpd( x )
  51.       #define _outp( x, y )   __outpb( (x), (y) )
  52.       #define _outpw( x, y )  __outpw( (x), (y) )
  53.       #define _outpd( x, y )  __outpd( (x), (y) )
  54.  
  55.       #define cgets( a )       _cgets( a )
  56.       #define cprintf          _cprintf
  57.       #define cputs( a )       _cputs( a )
  58.       #define cscanf           _cscanf
  59.       #define getch            _getch
  60.       #define getche           _getche
  61.       #define kbhit            _kbhit
  62.       #define putch( a )       _putch( a )
  63.       #define ungetch( a )     _ungetch( a )
  64.  
  65.    #endif
  66.  
  67.    #ifdef __cplusplus
  68.       }
  69.    #endif
  70.  
  71. #endif
  72.  
  73. #pragma info( none )
  74. #ifndef __CHKHDR__
  75.    #pragma info( restore )
  76. #endif
  77. #pragma info( restore )
  78.