Listing 5

/**************************************************************
*  Program : getkey
*  Descript. : This routine gets the next key (extended)
****************************************************************/

int getkey()
  {
  int i;

  if ( ( i = getch() ) != 0 )
    return( i );
  else
    return( getch() + 256 );
  }

/* End of File */