curs_scanw, scanw, wscanw, mvscanw, mvwscanw, vw_scanw, vwscanw - Convert formatted input from a Curses window
int scanw( char *fmt[, arg]... ); int wscanw( WINDOW *win, char *fmt[, arg]... ); int mvscanw( int y, int x, char *fmt[, arg]... ); int mvwscanw( WINDOW *win, int y, int x, char *fmt[, arg]... ); include <stdarg.h> include <curses.h>
int vw_scanw( WINDOW *win, char *fmt, va_list varglist ); include <varargs.h> include <curses.h>
Curses Library (libcurses)
Interfaces documented on this reference page conform to industry standards as follows:
scanw, wscanw, mvscanw, mvwscanw, vw_scanw, vwscanw: XPG4-UNIX
Refer to the
reference page for more information
about industry standards and associated tags.
The scanw, wscanw, and mvscanw routines correspond to scanf (see fscanf(3)). The effect of these routines is as though wgetstr were called on the window, and the resulting line were used as input for the scan. Fields that do not map to a variable in the fmt field are lost.
The vw_scanw routine is similar to vwprintw in that it uses a variable argument list. The third argument is va_list, a pointer to a list of arguments, as defined in <stdarg.h>.
routine is equivalent to
is defined in
<varargs.h>. Use of
is recommended for
The header file
includes the header file
These routines return
on failure and
upon successful completion.
Functions: curses(3), curs_getstr(3), curs_printw(3), fscanf(3)