Skip to content

Commit 766dc02

Browse files
authored
Merge pull request #53 from 4rturkania/patch-1
Update copy_io.c
2 parents 69f5fe4 + 8534585 commit 766dc02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

chapter_1/exercise_1_09/copy_io.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
int main(void)
44
{
5-
char c;
6-
char last_c = '\0';
5+
int c;
6+
int last_c = '\0';
7+
78
while ((c = getchar()) != EOF)
89
{
910
if (c != ' ' || last_c != ' ')

0 commit comments

Comments
 (0)