1vw_scanw(3XCURSES) X/Open Curses Library Functions vw_scanw(3XCURSES)
2
3
4
6 vw_scanw - convert formatted input from a window
7
9 cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib \
10 -R /usr/xpg4/lib -lcurses [ library... ]
11
12 c89 [ flag... ] file... -lcurses [ library... ]
13
14 #include <stdarg.h>
15 #include <curses.h>
16
17 int vw_scanw(WINDOW *win, char *fmt, va_list varglist);
18
19
21 fmt Is a scanf() format string.
22
23
24 varglist Is a pointer to a list of parameters.
25
26
27 win Is a pointer to the window in which the character is to be
28 read.
29
30
32 The vw_scanw() function achieves the same effect as wscanw(3XCURSES)
33 using a variable argument list. The third argument is a va_list, as
34 defined in <stdarg.h>.
35
37 Upon successful completion, vw_scanw() returns OK. Otherwise, it
38 returns ERR.
39
41 No errors are defined.
42
44 The vw_scanw() function is preferred over vwscanw(3XCURSES). The use of
45 the vwscanw() and vw_scanw() in the same file will not work, due to the
46 requirements to include <varargs.h> and <stdarg.h>, which both contain
47 definitions of va_list.
48
50 See attributes(5) for descriptions of the following attributes:
51
52
53
54
55 ┌─────────────────────────────┬─────────────────────────────┐
56 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │Interface Stability │Standard │
59 ├─────────────────────────────┼─────────────────────────────┤
60 │MT-Level │Unsafe │
61 └─────────────────────────────┴─────────────────────────────┘
62
64 libcurses(3XCURSES), mvscanw(3XCURSES), scanf(3C), attributes(5), stan‐
65 dards(5)
66
67
68
69SunOS 5.11 5 Jun 2002 vw_scanw(3XCURSES)