Minor update to 1998/schweikh1/README.md
Point out that skipping a file that cannot be opened lets the entry work right. I no longer remember the exact details.
This commit is contained in:
1 parent
94bdc82d32
commit
be7815388c
1 file changed
+2
-1
@@ -14,7 +14,8 @@
|
|||||||
|
|
||||||
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this for modern
|
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this for modern
|
||||||
systems (it did not work at all). He also made it so that if a file fails to
|
systems (it did not work at all). He also made it so that if a file fails to
|
||||||
open it does not return but rather skips the reading of the file.
|
open it does not return but rather skips the reading of the file. Doing this
|
||||||
|
lets the entry work right.
|
||||||
|
|
||||||
What was wrong? The call to `freopen()` was incorrect with the second arg (the
|
What was wrong? The call to `freopen()` was incorrect with the second arg (the
|
||||||
mode) being instead `5+__FILE__`. It now is `"r"`. There was also a call to
|
mode) being instead `5+__FILE__`. It now is `"r"`. There was also a call to
|
||||||
|
|||||||
Reference in new issue
Block a user