aboutsummaryrefslogtreecommitdiff
path: root/ch1/1-09_single-spacing.c
diff options
context:
space:
mode:
Diffstat (limited to 'ch1/1-09_single-spacing.c')
-rw-r--r--ch1/1-09_single-spacing.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ch1/1-09_single-spacing.c b/ch1/1-09_single-spacing.c
index ab629c5..3c2d80b 100644
--- a/ch1/1-09_single-spacing.c
+++ b/ch1/1-09_single-spacing.c
@@ -13,7 +13,6 @@
int main(void) {
char c;
int spaces = 0;
-
while ((c = getchar()) != EOF) {
if (c == ' ') {
if (spaces == 0) {
@@ -25,6 +24,5 @@ int main(void) {
putchar(c);
}
}
-
return 0;
}