From 39c0cbcc70aff47e17107826aa76cb525c83b122 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Tue, 9 Jul 2019 16:00:48 -0400 Subject: ch2 --- whitespace_converter.c | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 whitespace_converter.c (limited to 'whitespace_converter.c') diff --git a/whitespace_converter.c b/whitespace_converter.c deleted file mode 100644 index 6fee3bd..0000000 --- a/whitespace_converter.c +++ /dev/null @@ -1,18 +0,0 @@ -#include - -/* - * Convert concurrent blanks to single blank. - */ -main() { - int c; - - while ((c = getchar()) != EOF) { - if (c == ' ') { - while ((c = getchar()) == ' ') - ; - putchar(' '); - } - - putchar(c); - } -} -- cgit v1.2.3