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

📄 putc_.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/*char id_putc[] = "@(#)putc_.c	1.3"; * * write a character to the standard output * * calling sequence: *	integer putc *	ierror =  putc (char) * where: *	char will be sent to the standard output, usually the terminal *	ierror will be 0 if successful; a system error code otherwise. */#include	"../libI77/f_errno.h"#include	"../libI77/fiodefs.h"extern unit units[];	/* logical units table from iolib */long putc_(c, clen)char *c; long clen;{	int	i;	unit	*lu;	lu = &units[STDOUT];	if (!lu->ufd)		return((long)(errno=F_ERNOPEN));	if (!lu->uwrt && ! nowwriting(lu))		return((long)errno);	putc (*c, lu->ufd);	if (ferror(lu->ufd))	{		i = errno;		clearerr(lu->ufd);		return((long)i);	}	return(0L);}

⌨️ 快捷键说明

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