DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

mvscanw(3curses)


mvscanw -- convert formatted input from a window

Synopsis

cc [options] file -lcurses
#include <curses.h>

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

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

int scanw(char *fmt, ...);

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

Description

These functions are similar to scanf(3S). Their effect is as though mvwgetstr(3curses) were called to get a multi-byte character string from the current or specified window at the current or specified cursor position, and then sscanf(3S) were used to interpret and convert that string.

Return value

Upon successful completion, these functions return OK. Otherwise, they return ERR.

Errors

No errors are defined.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

getnstr(3curses), printw(3curses), scanf(3S), sscanf(3S), wcstombs(3C), curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004