scanw(3cur)
NAME
scanw, mvscanw, mvwscanw, wscanw − formatted read from window
SYNTAX
scanw(fmt [, arg] ...)
char ∗fmt;
wscanw(win, fmt [, arg] ...)
WINDOW ∗win;
char ∗fmt;
mvscanw(y, x, fmt [, arg] ...)
int y, x;
char ∗fmt;
mvwscanw(win, y, x, fmt [, arg] ...)
WINDOW ∗win;
int y, x;
char ∗fmt;
DESCRIPTION
These routines correspond to scanf. The function scanw reads input from the default window. The function wscanw reads input from the specified window. The function mvscanw moves the cursor to the specified position and then reads input from the default window. The function mvwscanw moves the cursor to the specified position and then reads input from the specified window.
For all the functions, the routine wgetstr is called to get a string from the window, and the resulting line is used as input for the scan. All character interpretation is carried out according to the scanf function rules.
SEE ALSO
Subroutines