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(3CURSES)					     Curses Library Functions					       curs_scanw(3CURSES)

NAME
curs_scanw, scanw, wscanw, mvscanw, mvwscanw, vwscanw - convert formatted input from a curses widow SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library ... ] #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 vwscanw(WINDOW *win, char *fmt, va_list varglist); DESCRIPTION
The scanw(), wscanw(), and mvscanw() routines correspond to scanf() (see scanf(3C)). The effect of these routines is as though wgetstr() were called on the window, and the resulting line used as input for the scan. 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 VALUES
vwscanw() returns ERR on failure and an integer equal to the number of fields scanned on success. Applications may interrogate the return value from the scanw, wscanw(), mvscanw(), and mvwscanw() routines to determine the number of fields which were mapped in the call. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
curs_getstr(3CURSES), curs_printw(3CURSES), curses(3CURSES), scanf(3C), attributes(5) NOTES
The header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h>. SunOS 5.11 31 Dec 1996 curs_scanw(3CURSES)
Man Page