Skip to content

Commit 5eb61d4

Browse files
committed
minor changes
1 parent 0b74658 commit 5eb61d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chapter01/1-12.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Exercise 1-12. Write a program that prints its input one word per line.
3+
*
34
* By Faisal Saadatmand
45
*/
56

@@ -14,7 +15,7 @@ int main(void)
1415
state = OUT;
1516
while ((c = getchar()) != EOF)
1617
if (c == ' ' || c == '\n' || c == '\t')
17-
printf("\n");
18+
putchar('\n');
1819
else
1920
putchar(c);
2021
return 0;

0 commit comments

Comments
 (0)