kandr

exercises from K&R
git clone git://bvnf.space/kandr.git
Log | Files | Refs

cat.c (132B)


      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;
}