<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> {The S-lang C Library Reference}: SLmalloc</TITLE>
<LINK HREF="cref-95.html" REL=next>
<LINK HREF="cref-93.html" REL=previous>
<LINK HREF="cref.html#toc94" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-95.html">Next</A>
<A HREF="cref-93.html">Previous</A>
<A HREF="cref.html#toc94">Contents</A>
<HR>
<H2><A NAME="SLmalloc"></A> <A NAME="s94">94. <B>SLmalloc</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Allocate some memory
<DT><B> Usage </B><DD><P><CODE>char *SLmalloc (unsigned int nbytes)</CODE>
<DT><B> Description </B><DD><P>This function uses <CODE>malloc</CODE> to allocate <CODE>nbytes</CODE> of memory.
Upon error it returns <CODE>NULL</CODE>; otherwise it returns a pointer to
the allocated memory.  One should use <CODE>SLfree</CODE> to free the
memory after used.
<DT><B> See Also </B><DD><P><CODE>SLfree, SLrealloc, SLcalloc</CODE>
</DL>
<P>
<P>
<P>
<HR>
<A HREF="cref-95.html">Next</A>
<A HREF="cref-93.html">Previous</A>
<A HREF="cref.html#toc94">Contents</A>
</BODY>
</HTML>
