summaryrefslogtreecommitdiffstats
path: root/4
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-12-07 18:25:49 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-12-07 18:25:49 +0800
commit6e31f2496eda9d71152acaf5b8db576af0b141a8 (patch)
treed25f1806a91b2968d1d11fe3bce4227d77646d43 /4
parent7162cc3ef2f00bca7df69905728e468204054fee (diff)
downloadk&r-exercises-6e31f2496eda9d71152acaf5b8db576af0b141a8.tar.gz
4.3
Diffstat (limited to '4')
-rw-r--r--4/3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/4/3.c b/4/3.c
index 0dce6ce..e2f2e7c 100644
--- a/4/3.c
+++ b/4/3.c
@@ -75,7 +75,7 @@ double pop() {
}
}
-int getch() { return (buf > 0) ? buf[--bufp] : getchar(); }
+int getch() { return (bufp > 0) ? buf[--bufp] : getchar(); }
void ungetch(int c) {
if (bufp >= BUFSIZE)