1curs_printw(3CURSES) Curses Library Functions curs_printw(3CURSES)
2
3
4
6 curs_printw, printw, wprintw, mvprintw, mvwprintw, vwprintw - print
7 formatted output in curses windows
8
10 cc [ flag ... ] file ... -lcurses [ library ... ]
11 #include <curses.h>
12
13 int printw(char *fmt, /* arg */ ... );
14
15
16 int wprintw(WINDOW *win, char *fmt, /* arg */ ... );
17
18
19 int mvprintw(int y, int x, char *fmt, /* arg */ ... );
20
21
22 int mvwprintw(WINDOW *win, int y, int x, char *fmt, /* arg */... );
23
24
25 #include <varargs.h>
26
27 int vwprintw(WINDOW *win, char *fmt, /* varglist */ ... );
28
29
31 The printw(), wprintw(), mvprintw(), and mvwprintw() routines are anal‐
32 ogous to printf() (see printf(3C) ). In effect, the string that would
33 be output by printf() is output instead as though waddstr() were used
34 on the given window.
35
36
37 The vwprintw() routine is analogous to vprintf() (see vprintf(3C)) and
38 performs a wprintw() using a variable argument list. The third argument
39 is a va_list, a pointer to a list of arguments, as defined in
40 <varargs.h>.
41
43 All routines return the integer ERR upon failure and an integer value
44 other than ERR upon successful completion.
45
47 See attributes(5) for descriptions of the following attributes:
48
49
50
51
52 ┌─────────────────────────────┬─────────────────────────────┐
53 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
54 ├─────────────────────────────┼─────────────────────────────┤
55 │MT-Level │Unsafe │
56 └─────────────────────────────┴─────────────────────────────┘
57
59 curses(3CURSES), printf(3C), vprintf(3C), attributes(5)
60
62 The header <curses.h> automatically includes the headers <stdio.h> and
63 <unctrl.h>.
64
65
66
67SunOS 5.11 31 Dec 1996 curs_printw(3CURSES)