From 7162cc3ef2f00bca7df69905728e468204054fee Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Mon, 6 Dec 2021 19:31:08 +0800 Subject: 4.3 --- 4/3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '4') 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); -- cgit v1.2.3