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

📄 isatty_.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/*char id_isatty[] = "@(#)isatty_.c	1.1"; * * determine if stream is associated with a tty (async port) * * calling sequence: *	logical	isatty, val *	val = isatty (lunit) * where: *	val will be .TRUE. if lunit is associated with a 'tty' */#include	"../libI77/fiodefs.h"extern unit units[];	/* logical units table from iolib */long isatty_(u)long *u;{	int	i;	unit	*lu;	if (*u < 0 || *u >= MXUNIT)		return(0);	lu = &units[*u];	if (!lu->ufd)		return(0);	return((long)(isatty(fileno(lu->ufd)) != 0));}

⌨️ 快捷键说明

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