<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> {The S-lang C Library Reference}: SLang_create_nslstring</TITLE>
<LINK HREF="cref-90.html" REL=next>
<LINK HREF="cref-88.html" REL=previous>
<LINK HREF="cref.html#toc89" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-90.html">Next</A>
<A HREF="cref-88.html">Previous</A>
<A HREF="cref.html#toc89">Contents</A>
<HR>
<H2><A NAME="SLang_create_nslstring"></A> <A NAME="s89">89. <B>SLang_create_nslstring</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Created a hashed substring
<DT><B> Usage </B><DD><P><CODE>char *SLang_create_nslstring (char *s, unsigned int n)</CODE>
<DT><B> Description </B><DD><P><CODE>SLang_create_nslstring</CODE> is like <CODE>SLang_create_slstring</CODE>
except that only the first <CODE>n</CODE> characters of <CODE>s</CODE> are used to
perform the string.  Upon error, it returns <CODE>NULL</CODE>, otherwise it
returns the hashed substring.  Such a string must be freed by the
function <CODE>SLang_free_slstring</CODE>.
<DT><B> Notes </B><DD><P>Do not use <CODE>free</CODE> or <CODE>SLfree</CODE> to free the string returned by
<CODE>SLang_create_slstring</CODE> or <CODE>SLang_create_nslstring</CODE>.  Also
it is important that no attempt is made to modify the hashed string
returned by either of these functions.  If one needs to modify a
string, the functions <CODE>SLmake_string</CODE> or <CODE>SLmake_nstring</CODE>
should be used instead.
<DT><B> See Also </B><DD><P><CODE>SLang_free_slstring, SLang_create_slstring, SLmake_nstring</CODE>
</DL>
<P>
<P>
<HR>
<A HREF="cref-90.html">Next</A>
<A HREF="cref-88.html">Previous</A>
<A HREF="cref.html#toc89">Contents</A>
</BODY>
</HTML>
