old-www/LDP/lpg/node101.html

41 lines
2.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-c (Feb 29, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>8.6.1 Formatted Output</TITLE>
<META NAME="description" CONTENT="8.6.1 Formatted Output">
<META NAME="keywords" CONTENT="lpg">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="lpg.css">
</HEAD>
<BODY LANG="EN">
<A NAME="tex2html1646" HREF="node102.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME="tex2html1644" HREF="node100.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME="tex2html1638" HREF="node100.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME="tex2html1648" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <BR>
<B> Next:</B> <A NAME="tex2html1647" HREF="node102.html">8.6.2 Insert Characters/Lines</A>
<B>Up:</B> <A NAME="tex2html1645" HREF="node100.html">8.6 Output</A>
<B> Previous:</B> <A NAME="tex2html1639" HREF="node100.html">8.6 Output</A>
<BR> <P>
<H2><A NAME="SECTION00961000000000000000">8.6.1 Formatted Output</A></H2>
<P>
<UL><LI> <TT>int printw(fmt, ...)</TT> <A NAME="fun_printw">&#160;</A><BR>
<TT>int wprintw(win, fmt, ...)</TT> <A NAME="fun_wprintw">&#160;</A><BR>
<TT>int mvprintw(y, x, fmt, ...)</TT> <A NAME="fun_mvprintw">&#160;</A><BR>
<TT>int mvwprintw(win, y, x, fmt, ...)</TT> <A NAME="fun_mvwprintw">&#160;</A><BR>
<TT>int vwprintw(win, fmt, va_list)</TT> <A NAME="fun_vwprintw">&#160;</A><BR>
These functions correspond to <B>printf(...)</B> and its counterparts
from .
<P>
In the package <B>printf(...)</B> is used for
formatted output. You can define an output string and include
variables of different types in it. See section <A HREF="node87.html#sec_formout">8.1.1</A> on page <A HREF="node87.html#sec_formout"><IMG ALIGN=BOTTOM ALT="gif" SRC="cross_ref_motif.gif"></A> for more.
<P>
For the use of <B>vwprintw(...)</B> you have to include also
.h.
</UL><BR> <HR>
<P><ADDRESS>
<I>Converted on: <BR>
Fri Mar 29 14:43:04 EST 1996</I>
</ADDRESS>
</BODY>
</HTML>