Digital的Unix操作系统VAX 4.2源码

源代码在线查看: puts.c

软件大小: 51179 K
上传用户: zhuying0000
关键词: Digital Unix 4.2 VAX
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* @(#)puts.c	4.3	ULTRIX	9/10/90 */				/* Originally derived from: */				/* @(#)puts.c	4.1 (Berkeley) 12/21/80 */				#include									puts(s)				register char *s;				{					register char c;								/* Put out characters until either a NUL or an error return (from _flsbuf) */				/* The body of the loop is equivalent to, but more efficient than,				 *	if (putchar(c) == EOF) return EOF;				 */					while (c = *s++)						if (--stdout->_cnt>=0)							*stdout->_ptr++=c;						else							if (_flsbuf((unsigned char)c, stdout) == EOF)								return EOF;					return(putchar('\n'));				}							

相关资源