index
:
k&r-exercises
master
Solutions to the exercises in K&R from my days of learning C.
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
4/9.c
1
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;