home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / qc_prog / chap12 / 12_10a.c next >
Encoding:
C/C++ Source or Header  |  1988-04-07  |  259 b   |  14 lines

  1. #include "texed.h"
  2. menu()
  3. {
  4.     struct key_struct *kp, *Read_kbd();
  5.     int cur_key, cur_move;
  6.     
  7.     kp = Read_kbd();
  8.     cur_key = kp->key;
  9.     cur_move = kp->move;
  10.     if (cur_key == ERROR)
  11.         return (cur_move);
  12.     return (cur_key);
  13. }
  14.