about summary refs log tree commit diff stats
path: root/cat.c
blob: eaf8cd35abc921ddb668c4d1d31e942d21b6148d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// from section 1.5 of K&R
#include <stdio.h>

int main() {
	int c;
	while ((c = getchar()) != EOF) {
		putchar(c);
	}
	return 0;
}