<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE> {The S-lang C Library Reference}: SLsmg_write_nchars</TITLE> <LINK HREF="cref-18.html" REL=next> <LINK HREF="cref-16.html" REL=previous> <LINK HREF="cref.html#toc17" REL=contents> </HEAD> <BODY> <A HREF="cref-18.html">Next</A> <A HREF="cref-16.html">Previous</A> <A HREF="cref.html#toc17">Contents</A> <HR> <H2><A NAME="SLsmg_write_nchars"></A> <A NAME="s17">17. <B>SLsmg_write_nchars</B></A></H2> <P> <DL> <DT><B> Synopsis </B><DD><P>Write n characters to the virtual display <DT><B> Usage </B><DD><P><CODE>void SLsmg_write_nchars (char *s, unsigned int n);</CODE> <DT><B> Description </B><DD><P><CODE>SLsmg_write_nchars</CODE> writes at most <CODE>n</CODE> characters from the string <CODE>s</CODE> to the display. If the length of <CODE>s</CODE> is less than <CODE>n</CODE>, the whole length of the string will get written. <P>This function differs from <CODE>SLsmg_write_nstring</CODE> in that <CODE>SLsmg_write_nstring</CODE> will pad the string to write exactly <CODE>n</CODE> characters. <CODE>SLsmg_write_nchars</CODE> does not perform any padding. <DT><B> See Also </B><DD><P><CODE>SLsmg_write_nchars, SLsmg_write_nstring</CODE> </DL> <P> <P> <P> <HR> <A HREF="cref-18.html">Next</A> <A HREF="cref-16.html">Previous</A> <A HREF="cref.html#toc17">Contents</A> </BODY> </HTML>