home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 4.ddi / TOOLS.4 / TCTSRC1.EXE / KBSET.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  674 b   |  34 lines

  1. /**
  2. *
  3. * Name        KBSET -- Set the shift status.
  4. *
  5. * Synopsis    kbset (pkeybd);
  6. *
  7. *        const KEYSTATUS *pkeybd  Keyboard status to set.
  8. *
  9. * Description    KBSET controls the status of the shift key and other
  10. *        control keys in the bit structure.  If the flag in the
  11. *        KEYSTATUS structure is set, the bit is turned on,
  12. *        otherwise it is turned off.
  13. *
  14. * Returns    Nothing.
  15. *
  16. * Version    6.00 (C)Copyright Blaise Computing Inc.  1987,1989
  17. *
  18. **/
  19.  
  20.  
  21. #include <bkeybrd.h>
  22. #include <butil.h>
  23.  
  24.  
  25. void kbset (pkeybd)
  26. const KEYSTATUS *pkeybd;
  27. {
  28.     char tempchar;
  29.     int tempint;
  30.  
  31.     utpokew (KB_SHIFTADDR, utpeekw (pkeybd));
  32.     kbready (&tempchar, &tempint);
  33. }
  34.