Perform a scanf on the window. The scanw function acts on the stdscr window.
#include <curses.h> int scanw (char *format_spec, . . . ); int wscanw (WINDOW *win, char *format_spec, . . . );
Otherwise, the function call must have at least as many input pointers as there are conversion specifications, and the conversion specifications must match the types of the input pointers.
Conversion specifications are matched to input sources in left-to- right order. Excess input pointers, if any, are ignored.
The scanw and wscanw functions accept, format, and return a line of text from the terminal screen. For more information, see the scrollok and scanf functions in this section.
OK | Indicates success. |
ERR | Indicates that the function makes the screen scroll illegally or that the scan was unsuccessful. |