Skip to content

Commit

Permalink
Merge pull request #70 from sadeem-albir/patch-11
Browse files Browse the repository at this point in the history
Fixed minor issue getop.c
  • Loading branch information
ohkimur authored Apr 1, 2024
2 parents 7a45948 + d2de3d7 commit 4c99fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter_5/exercise_5_06/getop.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int getop(char *s)
char c;

// Skip blanks (spaces and tabs)
while ((*s = c = getchar()) != ' ' || c != '\t')
while ((*s = c = getchar()) == ' ' || c == '\t')
;

*(s + 1) = '\0';
Expand Down

0 comments on commit 4c99fed

Please sign in to comment.