* Copyright (c) 1981 Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)scanw.c 5.7 (Berkeley) %G%";
* This routine implements a scanf on the standard screen.
scanw(const char *fmt
, ...)
ret
= _sscans(stdscr
, fmt
, ap
);
* This routine implements a scanf on the given window.
wscanw(WINDOW
*win
, const char *fmt
, ...)
wscanw(win
, fmt
, va_alist
)
ret
= _sscans(win
, fmt
, ap
);
* This routine actually executes the scanf from the window.
* THIS SHOULD BE RENAMED vwscanw AND EXPORTED
return wgetstr(win
, buf
) == OK
? vsscanf(buf
, fmt
, ap
) : ERR
;