📄 copyline.c
字号:
/*
** Copy the standard input to the standard output, line by line.
*/
#include <stdio.h>
#define MAX_LINE_LENGTH 1024 /* longest line I can copy */
void
copylines( FILE *input, FILE *output )
{
char buffer[MAX_LINE_LENGTH];
while( fgets( buffer, MAX_LINE_LENGTH, input ) != NULL )
fputs( buffer, output );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -