Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

wscanw(3cur) [ultrix man page]

scanw(3cur)															       scanw(3cur)

Name
       scanw, mvscanw, mvwscanw, wscanw - formatted read from window

Syntax
       #include <cursesX.h>

       int scanw(fmt [, arg] ...)
       char *fmt;

       int wscanw(win, fmt [, arg] ...)
       WINDOW *win;
       char *fmt;

       int mvscanw(y, x, fmt [, arg] ...)
       int y, x;
       char *fmt;

       int mvwscanw(win, y, x, fmt [, arg] ...)
       WINDOW *win;
       int y, x;
       char *fmt;

Description
       These  routines	correspond  to The function reads input from the default window.  The function reads input from the specified window.  The
       function moves the cursor to the specified position and then reads input from the default window.  The function moves  the  cursor  to  the
       specified position and then reads input from the specified window.

       For  all  the  functions, the routine 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 function rules.

Return Values
       Upon successful completion, the and functions return the number of items successfully matched.  On end-of-file, they return EOF.  Otherwise
       they return ERR.

See Also
       wgetstr(3cur), scanf(3s)

																       scanw(3cur)

Check Out this Related Man Page

curs_scanw(3X)															    curs_scanw(3X)

NAME
scanw, wscanw, mvscanw, mvwscanw, vwscanw, vw_scanw - convert formatted input from a curses window SYNOPSIS
#include <curses.h> 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] ...); int vw_scanw(WINDOW *win, char *fmt, va_list varglist); int vwscanw(WINDOW *win, char *fmt, va_list varglist); DESCRIPTION
The scanw, wscanw and mvscanw routines are analogous to scanf [see scanf(3S)]. The effect of these routines is as though wgetstr were called on the window, and the resulting line used as input for sscanf(3). Fields which do not map to a variable in the fmt field are lost. The vwscanw routine is similar to vwprintw in that it performs a wscanw using a variable argument list. The third argument is a va_list, a pointer to a list of arguments, as defined in <varargs.h>. RETURN VALUE
vwscanw returns ERR on failure and an integer equal to the number of fields scanned on success. Applications may use the return value from the scanw, wscanw, mvscanw and mvwscanw routines to determine the number of fields which were mapped in the call. PORTABILITY
The XSI Curses standard, Issue 4 describes these functions. The function vwscanw is marked TO BE WITHDRAWN, and is to be replaced by a function vw_scanw using the <stdarg.h> interface. SEE ALSO
curses(3X), curs_getstr(3X), curs_printw(3X), scanf(3S) curs_scanw(3X)
Man Page