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

📄 ttynam_.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/*char id_ttynam[] = "@(#)ttynam_.c	1.1"; * * Return name of tty port associated with lunit * * calling sequence: *	character*19 string, ttynam * 	string = ttynam (lunit) * where: *	the character string will be filled with the name of *	the port, preceded with '/dev/', and blank padded. *	(19 is the max length ever required) */#include "../libI77/fiodefs.h"extern unit units[];ttynam_(name, strlen, lu)char *name; long strlen; long *lu;{	char *t = NULL, *ttyname();	if (0 <= *lu && *lu < MXUNIT && units[*lu].ufd)		t = ttyname(fileno(units[*lu].ufd));	if (t == NULL)		t = "";	b_char(t, name, strlen);}

⌨️ 快捷键说明

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