1
0
mirror of https://github.com/krislamo/knrc.git synced 2024-09-19 21:00:35 +00:00
knrc/04-file-copying.c

11 lines
130 B
C
Raw Normal View History

#include <stdio.h>
2021-11-06 01:01:14 +00:00
/* copy input to output; 2nd version */
int main()
{
int c;
2021-11-06 01:01:14 +00:00
while ((c = getchar()) != EOF)
putchar(c);
}