Project-Scylla/KNR C/ex1_6-getchar.c

12 lines
152 B
C
Raw Normal View History

#include <stdio.h>
/*Copy input to output; KNR C exercise 1-6*/
int main(){
int c;
while ((c = getchar()) != EOF)
putchar (c);
return 1;
}