实例7-2.c
来自「Linux下C语言编程例子」· C语言 代码 · 共 16 行
C
16 行
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#define MAXLINE 4096
int main(void)
{
char buf[MAXLINE];
while (fgets(buf,MAXLINE,stdin)!=NULL)
if (fputs(buf,stdout)==EOF)
printf("output error");
if(ferror(stdin))
printf("input error");
exit(0);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?