Format fix in 1998/schweikh1/README.md

This commit is contained in:
Cody Boone Ferguson committed 2023-03-28 09:53:16 -07:00
1 parent 5bbdf553cc
commit 504e25a9e8
1 file changed
+6 -7
+6 -7
View File
@@ -16,13 +16,12 @@
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.
What was What was wrong? The call to `freopen()` was incorrect with the second arg (the
wrong? The call to `freopen()` was incorrect with the second arg (the mode) mode) being instead `5+__FILE__`. It now is `"r"`. There was also a call to
being instead `5+__FILE__`. It now is `"r"`. There was also a call to `fopen()` `fopen()` that was wrong where the mode was instead `44+__FILE__`. Interestingly
that was wrong where the mode was instead `44+__FILE__`. Interestingly enough enough though this did not seem to be an issue though I cannot explain why. He
though this did not seem to be an issue though I cannot explain why. He notes notes that it works fine with `clang` as well as `gcc` (which is what is used
that it works fine with `clang` as well as `gcc` (which is what is used but in but in macOS - see below for alternative code - `gcc` is clang).
macOS - see below for alternative code - `gcc` is clang).
Additionally Cody provided an alternative version for macOS. See below for the Additionally Cody provided an alternative version for macOS. See below for the
alternative version. Thank you Cody for your assistance! alternative version. Thank you Cody for your assistance!