⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scanw.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/* * scanw and friends * * 1/26/81 (Berkeley) @(#)scanw.c	1.1 */# include	"curses.ext"# include	<varargs.h>/* *	This routine implements a scanf on the standard screen. */scanw(fmt, va_alist)char	*fmt;va_dcl{	va_list ap;	va_start(ap);	return _sscans(stdscr, fmt, ap);}/* *	This routine implements a scanf on the given window. */wscanw(win, fmt, va_alist)WINDOW	*win;char	*fmt;va_dcl{	va_list ap;	va_start(ap);	return _sscans(win, fmt, ap);}/* *	This routine actually executes the scanf from the window. * *	This is really a modified version of "sscanf".  As such, * it assumes that sscanf interfaces with the other scanf functions * in a certain way.  If this is not how your system works, you * will have to modify this routine to use the interface that your * "sscanf" uses. */_sscans(win, fmt, args)WINDOW	*win;char	*fmt;int	*args; {	char	buf[100];	FILE	junk;	junk._flag = _IOREAD|_IOSTRG;	junk._base = junk._ptr = buf;	if (wgetstr(win, buf) == ERR)		return ERR;	junk._cnt = strlen(buf);	return _doscan(&junk, fmt, args);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -