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

📄 output.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef lint#ifdef sccsstatic  char sccsid[] = "@(#)output.c 1.1 92/07/30 Copyr 1985 Sun Micro";#endif#endif/* * Copyright (c) 1985 by Sun Microsystems, Inc. */#include <sunwindow/io_stream.h>#define Get_Output_Ops \	struct output_ops_vector *ops;\	if (out->stream_type != Output) exit(1);\	ops = out->ops.output_opsstatic voidstream_putstring();/* GENERIC OUTPUT FUNCTIONS */intstream_putc(c, out)	char            c;	STREAM         *out;{	Get_Output_Ops;	return ((*ops->str_putc) (c, out));}voidstream_puts(s, out)	char           *s;	STREAM         *out;{	stream_putstring(s, out, True);}voidstream_fputs(s, out)	char           *s;	STREAM         *out;{	stream_putstring(s, out, False);}static voidstream_putstring(s, out, include_newline)	char           *s;	STREAM         *out;	Bool            include_newline;{	int             i;	Get_Output_Ops;	if (ops->str_fputs != NULL)		(*ops->str_fputs) (s, out);	else		for (i = 0; s[i] != '\0'; i++)			(*ops->str_putc) (s[i], out);	if (include_newline)		(*ops->str_putc) ('\n', out);}voidstream_flush(out)	STREAM         *out;{	void            (*fn) ();	Get_Output_Ops;	fn = ops->flush;	if (fn != NULL)		(*fn) (out);}

⌨️ 快捷键说明

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