<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> {The S-lang C Library Reference}: SLang_create_keymap</TITLE>
<LINK HREF="cref-123.html" REL=next>
<LINK HREF="cref-121.html" REL=previous>
<LINK HREF="cref.html#toc122" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-123.html">Next</A>
<A HREF="cref-121.html">Previous</A>
<A HREF="cref.html#toc122">Contents</A>
<HR>
<H2><A NAME="SLang_create_keymap"></A> <A NAME="s122">122. <B>SLang_create_keymap</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Create a new keymap
<DT><B> Usage </B><DD><P><CODE>SLKeyMap_List_Type *SLang_create_keymap (name, km)</CODE>
<BLOCKQUOTE><CODE>
<PRE>
     char *name;
     SLKeyMap_List_Type *km;
</PRE>
</CODE></BLOCKQUOTE>
<DT><B> Description </B><DD><P><CODE>SLang_create_keymap</CODE> creates a new keymap called <CODE>name</CODE> by
copying the key definitions from the keymap <CODE>km</CODE>.  If <CODE>km</CODE>
is <CODE>NULL</CODE>, the newly created keymap will be empty and it is up
to the calling routine to initialize it via the
<CODE>SLang_define_key</CODE> and <CODE>SLkm_define_keysym</CODE> functions.
<CODE>SLang_create_keymap</CODE> returns a pointer to the new keymap, or
<CODE>NULL</CODE> upon failure.
<DT><B> See Also </B><DD><P><CODE>SLang_define_key, SLkm_define_keysym</CODE>
</DL>
<P>
<P>
<P>
<HR>
<A HREF="cref-123.html">Next</A>
<A HREF="cref-121.html">Previous</A>
<A HREF="cref.html#toc122">Contents</A>
</BODY>
</HTML>
