<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> {The S-lang C Library Reference}: SLsmg_write_nstring</TITLE>
<LINK HREF="cref-16.html" REL=next>
<LINK HREF="cref-14.html" REL=previous>
<LINK HREF="cref.html#toc15" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-16.html">Next</A>
<A HREF="cref-14.html">Previous</A>
<A HREF="cref.html#toc15">Contents</A>
<HR>
<H2><A NAME="SLsmg_write_nstring"></A> <A NAME="s15">15. <B>SLsmg_write_nstring</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Write the first n characters of a string on the display
<DT><B> Usage </B><DD><P><CODE>void SLsmg_write_nstring (char *s, unsigned int n);</CODE>
<DT><B> Description </B><DD><P><CODE>SLsmg_write_nstring</CODE> writes the first <CODE>n</CODE> characters of
<CODE>s</CODE> to this virtual display.  If the length of the string
<CODE>s</CODE> is less than <CODE>n</CODE>, the spaces will used until
<CODE>n</CODE> characters have been written.  <CODE>s</CODE> can be <CODE>NULL</CODE>, in
which case <CODE>n</CODE> spaces will be written.
<DT><B> See Also </B><DD><P><CODE>SLsmg_write_string, SLsmg_write_nchars</CODE>
</DL>
<P>
<P>
<P>
<HR>
<A HREF="cref-16.html">Next</A>
<A HREF="cref-14.html">Previous</A>
<A HREF="cref.html#toc15">Contents</A>
</BODY>
</HTML>
