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

📄 output.h

📁 操作系统源代码
💻 H
字号:
/* Copyright (c) 1985 Ceriel J.H. Jacobs *//* $Header: output.h,v 7.1 87/04/07 14:05:56 ceriel Exp $ */# ifndef _OUTPUT_# define PUBLIC extern# else# define PUBLIC# endifPUBLIC int _ocnt;PUBLIC char *_optr;#define putch(ch)	if (1) {if (--_ocnt <= 0) flush(); *_optr++ = (ch);} elseVOID	flush();/* * void flush() * * Write the output buffer to the screen */VOID	nflush();/* * void nflush() * * Clear output buffer, but do not write it */int	fputch();/* * int fputch(c) * int c;		The character to be printed * * Put character "c" in output buffer and flush if necessary. */VOID	putline();/* * void putline(s) * char *s;		The string to be printed * * Put string "s" in output buffer  etc... */VOID	cputline();/* * void cputline(s) * char *s;		The string to be handled * * Put string "s" in the output buffer, expanding control characters */VOID	prnum();/* * void prnum(n) * long n;		The number to be printed * * print the number "n", using putch. */char	*getnum();/* * char *getnum(n) * long n;		The number to be converted to a string * * Convert a number to a string and return a pointer to it. */# undef PUBLIC

⌨️ 快捷键说明

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