stdio.c
来自「nachos操作系统框架」· C语言 代码 · 共 19 行
C
19 行
#include "stdio.h"
#include "stdlib.h"
int fgetc(int fd) {
unsigned char c;
while (read(fd, &c, 1) != 1);
return c;
}
void fputc(char c, int fd) {
write(fd, &c, 1);
}
void fputs(const char *s, int fd) {
write(fd, (char*) s, strlen(s));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?