ncursesw-morphos/doc/html/man/curs_printw.3x.html
Thomas E. Dickey b1f61d9f3a ncurses 5.1
2000-07-08 22:46:08 -04:00

79 lines
2.5 KiB
HTML

<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->
</PRE>
<H2>NAME</H2><PRE>
<B>printw</B>, <B>wprintw</B>, <B>mvprintw</B>, <B>mvwprintw</B>, <B>vwprintw</B>, <B>vw_printw</B>
- print formatted output in <B>curses</B> windows
</PRE>
<H2>SYNOPSIS</H2><PRE>
<B>#include</B> <B>&lt;curses.h&gt;</B>
<B>int</B> <B>printw(char</B> <B>*fmt</B> [<B>,</B> <B>arg</B>] <B>...);</B>
<B>int</B> <B>wprintw(WINDOW</B> <B>*win,</B> <B>char</B> <B>*fmt</B> [<B>,</B> <B>arg</B>] <B>...);</B>
<B>int</B> <B>mvprintw(int</B> <B>y,</B> <B>int</B> <B>x,</B> <B>char</B> <B>*fmt</B> [<B>,</B> <B>arg</B>] <B>...);</B>
<B>int</B> <B>mvwprintw(WINDOW</B> <B>*win,</B> <B>int</B> <B>y,</B> <B>int</B> <B>x,</B>
<B>char</B> <B>*fmt</B> [<B>,</B> <B>arg]</B> ...);
<B>#include</B> <B>&lt;varargs.h&gt;</B>
<B>int</B> <B>vwprintw(WINDOW</B> <B>*win,</B> <B>char</B> <B>*fmt,</B> <B>varglist);</B>
<B>int</B> <B>vw_printw(WINDOW</B> <B>*win,</B> <B>char</B> <B>*fmt,</B> <B>varglist);</B>
</PRE>
<H2>DESCRIPTION</H2><PRE>
The <B>printw</B>, <B>wprintw</B>, <B>mvprintw</B> and <B>mvwprintw</B> routines are
analogous to <B>printf</B> [see <B><A HREF="printf.3S.html">printf(3S)</A></B>]. In effect, the
string that would be output by <B>printf</B> is output instead as
though <B>waddstr</B> were used on the given window.
The <B>vwprintw</B> routine is analogous to <B>vprintf</B> [see
<B><A HREF="printf.3S.html">printf(3S)</A></B>] and performs a <B>wprintw</B> using a variable argu-
ment list. The third argument is a <B>va_list</B>, a pointer to
a list of arguments, as defined in <B>&lt;varargs.h&gt;</B>.
</PRE>
<H2>RETURN VALUE</H2><PRE>
Routines that return an integer return <B>ERR</B> upon failure
and <B>OK</B> (SVr4 only specifies "an integer value other than
<B>ERR</B>") upon successful completion.
</PRE>
<H2>PORTABILITY</H2><PRE>
The XSI Curses standard, Issue 4 describes these func-
tions. The function <B>vwprintw</B> is marked TO BE WITHDRAWN,
and is to be replaced by a function <B>vw_printw</B> using the
<B>&lt;stdarg.h&gt;</B> interface.
</PRE>
<H2>SEE ALSO</H2><PRE>
<B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="printf.3S.html">printf(3S)</A></B>, <B>vprintf(3S)</B>
</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>