summaryrefslogtreecommitdiffstats
path: root/4/9.c
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-12-12 17:02:14 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-12-12 17:02:14 +0800
commit6f52254a9003f2c9f704edc19db7ea1a9d7c2b7b (patch)
treed231605aba59350c1b666fbcc8c125af6f4d3403 /4/9.c
parentcda2a45de836beb9e2760a1956ce1898bcf404df (diff)
downloadk&r-exercises-6f52254a9003f2c9f704edc19db7ea1a9d7c2b7b.tar.gz
4.9
Diffstat (limited to '4/9.c')
-rw-r--r--4/9.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/4/9.c b/4/9.c
index 0a9fb26..2392b40 100644
--- a/4/9.c
+++ b/4/9.c
@@ -171,6 +171,7 @@ int getop(char s[]) {
;
s[1] = 0;
+ // solution to 4.9: exit program by returning EOF to main
if (c == EOF)
return EOF;