<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> {The S-lang C Library Reference}: SLkm_define_key</TITLE>
<LINK HREF="cref-119.html" REL=next>
<LINK HREF="cref-117.html" REL=previous>
<LINK HREF="cref.html#toc118" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-119.html">Next</A>
<A HREF="cref-117.html">Previous</A>
<A HREF="cref.html#toc118">Contents</A>
<HR>
<H2><A NAME="SLkm_define_key"></A> <A NAME="s118">118. <B>SLkm_define_key</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Define a key in a keymap
<DT><B> Usage </B><DD><P><CODE>int SLkm_define_key (char *seq, FVOID_STAR f, SLKeyMap_List_Type *km)</CODE>
<DT><B> Description </B><DD><P><CODE>SLkm_define_key</CODE> associates the key sequence <CODE>seq</CODE> with the
function pointer <CODE>f</CODE> in the keymap specified by <CODE>km</CODE>.  Upon
success, it returns zero, otherwise it returns a negative integer
upon error.
<DT><B> See Also </B><DD><P><CODE>SLkm_define_keysym, SLang_define_key</CODE>
</DL>
<P>
<P>
<P>
<P>
<HR>
<A HREF="cref-119.html">Next</A>
<A HREF="cref-117.html">Previous</A>
<A HREF="cref.html#toc118">Contents</A>
</BODY>
</HTML>
