console.c

来自「jos lab3代码」· C语言 代码 · 共 22 行

C
22
字号
#include <inc/string.h>#include <inc/lib.h>voidcputchar(int ch){	char c = ch;	// Unlike standard Unix's putchar,	// the cputchar function _always_ outputs to the system console.	sys_cputs(&c, 1);}intgetchar(void){	return sys_cgetc();}

⌨️ 快捷键说明

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