From 39c0cbcc70aff47e17107826aa76cb525c83b122 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 9 Jul 2019 16:00:48 -0400 Subject: ch2 --- line_counter.c | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 line_counter.c (limited to 'line_counter.c') diff --git a/line_counter.c b/line_counter.c deleted file mode 100644 index 0447aa7..0000000 --- a/line_counter.c +++ /dev/null @@ -1,16 +0,0 @@ -#include - -/* - * Count lines in input - */ -main() { - int c, nl; - - nl = 0; - - while ((c = getchar()) != EOF) - if (c == '\n') - ++nl; - - printf("%d\n", nl); -} -- cgit v1.2.3