summaryrefslogtreecommitdiffstats
path: root/ncurses-5.2/doc/html/man/curs_printw.3x.html
blob: 95424b3a430e26faa327e027a78346e8bf882a51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<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>