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

12 lines
150 B
C
Raw Normal View History

#include <stdio.h>
/*Copy input to output; KNR C exercise 1-6*/
int main(){
int c;
2025-08-07 23:42:52 +00:00
while ((c = getchar() != EOF))
putchar (c);
return 1;
}