]> ncurses.scripts.mit.edu Git - ncurses.git/blob - doc/html/man/curs_printw.3x.html
ncurses 5.2
[ncurses.git] / doc / html / man / curs_printw.3x.html
1 <HTML>
2 <BODY>
3 <PRE>
4 <!-- Manpage converted by man2html 3.0.1 -->
5
6 </PRE>
7 <H2>NAME</H2><PRE>
8        <B>printw</B>,  <B>wprintw</B>, <B>mvprintw</B>, <B>mvwprintw</B>, <B>vwprintw</B>, <B>vw_printw</B>
9        - print formatted output in <B>curses</B> windows
10
11
12 </PRE>
13 <H2>SYNOPSIS</H2><PRE>
14        <B>#include</B> <B>&lt;curses.h&gt;</B>
15
16        <B>int</B> <B>printw(char</B> <B>*fmt</B> [<B>,</B> <B>arg</B>] <B>...);</B>
17        <B>int</B> <B>wprintw(WINDOW</B> <B>*win,</B> <B>char</B> <B>*fmt</B> [<B>,</B> <B>arg</B>] <B>...);</B>
18        <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>
19        <B>int</B> <B>mvwprintw(WINDOW</B> <B>*win,</B> <B>int</B> <B>y,</B> <B>int</B> <B>x,</B>
20              <B>char</B> <B>*fmt</B> [<B>,</B> <B>arg]</B> ...);
21
22        <B>#include</B> <B>&lt;varargs.h&gt;</B>
23        <B>int</B> <B>vwprintw(WINDOW</B> <B>*win,</B> <B>char</B> <B>*fmt,</B> <B>varglist);</B>
24        <B>int</B> <B>vw_printw(WINDOW</B> <B>*win,</B> <B>char</B> <B>*fmt,</B> <B>varglist);</B>
25
26
27 </PRE>
28 <H2>DESCRIPTION</H2><PRE>
29        The <B>printw</B>, <B>wprintw</B>, <B>mvprintw</B> and <B>mvwprintw</B>  routines  are
30        analogous  to  <B>printf</B>  [see  <B><A HREF="printf.3S.html">printf(3S)</A></B>].   In effect, the
31        string that would be output by <B>printf</B> is output instead as
32        though <B>waddstr</B> were used on the given window.
33
34        The   <B>vwprintw</B>   routine  is  analogous  to  <B>vprintf</B>  [see
35        <B><A HREF="printf.3S.html">printf(3S)</A></B>] and performs a <B>wprintw</B> using a variable  argu-
36        ment  list.  The third argument is a <B>va_list</B>, a pointer to
37        a list of arguments, as defined in <B>&lt;varargs.h&gt;</B>.
38
39
40 </PRE>
41 <H2>RETURN VALUE</H2><PRE>
42        Routines that return an integer return  <B>ERR</B>  upon  failure
43        and  <B>OK</B>  (SVr4 only specifies "an integer value other than
44        <B>ERR</B>") upon successful completion.
45
46
47 </PRE>
48 <H2>PORTABILITY</H2><PRE>
49        The XSI Curses standard, Issue  4  describes  these  func-
50        tions.   The  function <B>vwprintw</B> is marked TO BE WITHDRAWN,
51        and is to be replaced by a function  <B>vw_printw</B>  using  the
52        <B>&lt;stdarg.h&gt;</B> interface.
53
54
55 </PRE>
56 <H2>SEE ALSO</H2><PRE>
57        <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="printf.3S.html">printf(3S)</A></B>, <B>vprintf(3S)</B>
58
59
60
61
62
63
64
65
66
67
68
69
70
71 </PRE>
72 <HR>
73 <ADDRESS>
74 Man(1) output converted with
75 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
76 </ADDRESS>
77 </BODY>
78 </HTML>