summaryrefslogtreecommitdiffstats
path: root/4
diff options
context:
space:
mode:
Diffstat (limited to '4')
-rw-r--r--4/11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/4/11.c b/4/11.c
index e6c0645..bb2d1f1 100644
--- a/4/11.c
+++ b/4/11.c
@@ -126,11 +126,11 @@ int getch() { return (bufp > 0) ? buf[--bufp] : getchar(); }
int getop(char s[]) {
int c, i, rc;
- static int pc = EOF;
+ static int pc = ' ';
- if (pc != EOF && pc != ' ' && pc != '\t') {
+ if (pc != ' ' && pc != '\t') {
c = pc;
- pc = EOF;
+ pc = ' ';
} else {
while ((s[0] = c = getch()) == ' ' || c == '\t')
;