home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_10 / 9n10123a < prev    next >
Text File  |  1991-08-15  |  343b  |  17 lines

  1.  
  2. /***************************************************************
  3. *  Program  : getkey
  4. *  Descript. : This routine gets the next key (extended)
  5. *****************************************************************/
  6.  
  7. int getkey()
  8.   {
  9.   int i;
  10.  
  11.   if ( ( i = getch() ) != 0 )
  12.     return( i );
  13.   else
  14.     return( getch() + 256 );
  15.   }
  16.  
  17.