Sophie

Sophie

distrib > Mandriva > 8.1 > i586 > by-pkgid > 700475c8ae73fb4d57b6df4485c29e1c > files > 69

slang-doc-1.4.4-2mdk.i586.rpm

<!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_wrapped_string</TITLE>
 <LINK HREF="cref-19.html" REL=next>
 <LINK HREF="cref-17.html" REL=previous>
 <LINK HREF="cref.html#toc18" REL=contents>
</HEAD>
<BODY>
<A HREF="cref-19.html">Next</A>
<A HREF="cref-17.html">Previous</A>
<A HREF="cref.html#toc18">Contents</A>
<HR>
<H2><A NAME="SLsmg_write_wrapped_string"></A> <A NAME="s18">18. <B>SLsmg_write_wrapped_string</B></A></H2>

<P>
<DL>
<DT><B> Synopsis </B><DD><P>Write a string to the display with wrapping
<DT><B> Usage </B><DD><P><CODE>void SLsmg_write_wrapped_string (s, r, c, nr, nc, fill)</CODE>
<BLOCKQUOTE><CODE>
<PRE>
    char *s
    int r, c
    unsigned int nr, nc
    int fill
</PRE>
</CODE></BLOCKQUOTE>
<DT><B> Description </B><DD><P><CODE>SLsmg_write_wrapped_string</CODE> writes the string <CODE>s</CODE> to the
virtual display.  The string will be confined to the rectangular
region whose upper right corner is at row <CODE>r</CODE> and column <CODE>c</CODE>,
and consists of <CODE>nr</CODE> rows and <CODE>nc</CODE> columns.  The string will
be wrapped at the boundaries of the box.  If <CODE>fill</CODE> is non-zero,
the last line to which characters have been written will get padded
with spaces.
<DT><B> Notes </B><DD><P>This function does not wrap on word boundaries.  However, it will
wrap when a newline charater is encountered.
<DT><B> See Also </B><DD><P><CODE>SLsmg_write_string</CODE>
</DL>
<P>
<P>
<P>
<HR>
<A HREF="cref-19.html">Next</A>
<A HREF="cref-17.html">Previous</A>
<A HREF="cref.html#toc18">Contents</A>
</BODY>
</HTML>