]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/curs_printw.3x
ncurses 5.1
[ncurses.git] / man / curs_printw.3x
1 .\"***************************************************************************
2 .\" Copyright (c) 1998,2000 Free Software Foundation, Inc.                   *
3 .\"                                                                          *
4 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
5 .\" copy of this software and associated documentation files (the            *
6 .\" "Software"), to deal in the Software without restriction, including      *
7 .\" without limitation the rights to use, copy, modify, merge, publish,      *
8 .\" distribute, distribute with modifications, sublicense, and/or sell       *
9 .\" copies of the Software, and to permit persons to whom the Software is    *
10 .\" furnished to do so, subject to the following conditions:                 *
11 .\"                                                                          *
12 .\" The above copyright notice and this permission notice shall be included  *
13 .\" in all copies or substantial portions of the Software.                   *
14 .\"                                                                          *
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
16 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
17 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
18 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
19 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
20 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
21 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
22 .\"                                                                          *
23 .\" Except as contained in this notice, the name(s) of the above copyright   *
24 .\" holders shall not be used in advertising or otherwise to promote the     *
25 .\" sale, use or other dealings in this Software without prior written       *
26 .\" authorization.                                                           *
27 .\"***************************************************************************
28 .\"
29 .\" $Id: curs_printw.3x,v 1.11 2000/07/01 20:11:32 tom Exp $
30 .TH curs_printw 3X ""
31 .SH NAME
32 \fBprintw\fR,
33 \fBwprintw\fR,
34 \fBmvprintw\fR,
35 \fBmvwprintw\fR,
36 \fBvwprintw\fR, \fBvw_printw\fR - print formatted output in \fBcurses\fR windows
37 .SH SYNOPSIS
38 \fB#include <curses.h>\fR
39
40 \fBint printw(char *fmt\fR [\fB, arg\fR] \fB...);\fR
41 .br
42 \fBint wprintw(WINDOW *win, char *fmt\fR [\fB, arg\fR] \fB...);\fR
43 .br
44 \fBint mvprintw(int y, int x, char *fmt\fR [\fB, arg\fR] \fB...);\fR
45 .br
46 \fBint mvwprintw(WINDOW *win, int y, int x,\fR
47       \fBchar *fmt\fR [\fB, arg]\fR ...);
48
49 \fB#include <varargs.h>\fR
50 .br
51 \fBint vwprintw(WINDOW *win, char *fmt, varglist);\fR
52 .br
53 \fBint vw_printw(WINDOW *win, char *fmt, varglist);\fR
54 .br
55 .SH DESCRIPTION
56 The \fBprintw\fR, \fBwprintw\fR, \fBmvprintw\fR and \fBmvwprintw\fR
57 routines are analogous to \fBprintf\fR [see \fBprintf\fR(3S)].  In
58 effect, the string that would be output by \fBprintf\fR is output
59 instead as though \fBwaddstr\fR were used on the given window.
60
61 The \fBvwprintw\fR routine is analogous to \fBvprintf\fR [see
62 \fBprintf\fR(3S)] and performs a \fBwprintw\fR using a variable
63 argument list.  The third argument is a \fBva_list\fR, a pointer to a
64 list of arguments, as defined in \fB<varargs.h>\fR.
65 .SH RETURN VALUE
66 Routines that return an integer return \fBERR\fR upon failure and \fBOK\fR
67 (SVr4 only specifies "an integer value other than \fBERR\fR") upon successful
68 completion.
69 .SH PORTABILITY
70 The XSI Curses standard, Issue 4 describes these functions.  The function
71 \fBvwprintw\fR is marked TO BE WITHDRAWN, and is to be replaced by a function
72 \fBvw_printw\fR using the \fB<stdarg.h>\fR interface.
73 .SH SEE ALSO
74 \fBcurses\fR(3X), \fBprintf\fR(3S), \fBvprintf(3S)\fR
75 .\"#
76 .\"# The following sets edit modes for GNU EMACS
77 .\"# Local Variables:
78 .\"# mode:nroff
79 .\"# fill-column:79
80 .\"# End: