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

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Duplicate a string
<DT><B> Usage </B><DD><P><CODE>char *SLmake_string (char *s)</CODE>
<DT><B> Description </B><DD><P>The <CODE>SLmake_string</CODE> function creates a new copy of the string
<CODE>s</CODE>, via <CODE>malloc</CODE>, and returns it.  Upon failure it returns
<CODE>NULL</CODE>.  Since the resulting string is malloced, it should be
freed when nolonger needed via a call to either <CODE>free</CODE> or
<CODE>SLfree</CODE>.
<DT><B> Notes </B><DD><P><CODE>SLmake_string</CODE> should not be confused with the function
<CODE>SLang_create_slstring</CODE>, which performs a similar function.
<DT><B> See Also </B><DD><P><CODE>SLmake_nstring, SLfree, SLmalloc, SLang_create_slstring</CODE>
</DL>
<P>
<P>
<P>
<HR>
<A HREF="cref-88.html">Next</A>
<A HREF="cref-86.html">Previous</A>
<A HREF="cref.html#toc87">Contents</A>
</BODY>
</HTML>
