home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / me34src.zip / me3 / ed / keymisc.c < prev    next >
C/C++ Source or Header  |  1995-01-14  |  468b  |  22 lines

  1. /* keymisc.c : 
  2.  * C Durland
  3.  */
  4.  
  5. /* Craig Durland    Public Domain
  6.  *   Distributed "as is", without warranties of any kind, but comments,
  7.  *     suggestions and bug reports are welcome.
  8.  */
  9.  
  10. #include <dtable.h>
  11. #include <const.h>
  12. #include "ed.h"
  13.  
  14. int Eset_pkey(pkeys,n,kc) PKey *pkeys; int n; EKeyCode kc;
  15. {
  16.   if (0 <= n && n < PKEYS) { pkeys[n] = kc; return TRUE; }
  17.   return FALSE;
  18. }
  19.  
  20. void Eclear_keytable(kt) dTable *kt;
  21.     { reset_dTable(kt); }        /* unbind all keys */
  22.