summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--4/3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/4/3.c b/4/3.c
index 55ef9f9..0dce6ce 100644
--- a/4/3.c
+++ b/4/3.c
@@ -87,7 +87,6 @@ void ungetch(int c) {
int getop(char s[]) {
int i, c;
-
while ((s[0] = c = getch()) == ' ' || c == '\t')
;
s[1] = 0;
@@ -103,7 +102,7 @@ int getop(char s[]) {
while (isdigit(s[++i] = c = getch()))
;
s[i] = 0;
-
+
if (c != EOF)
ungetch(c);