From 504e25a9e8b8f34d3a7a53f3ce090c7a3e76c69f Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 28 Mar 2023 09:53:16 -0700 Subject: [PATCH] Format fix in 1998/schweikh1/README.md --- 1998/schweikh1/README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/1998/schweikh1/README.md b/1998/schweikh1/README.md index 3c113282e..0327cde5b 100644 --- a/1998/schweikh1/README.md +++ b/1998/schweikh1/README.md @@ -16,13 +16,12 @@ 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. -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 `fopen()` -that was wrong where the mode was instead `44+__FILE__`. Interestingly enough -though this did not seem to be an issue though I cannot explain why. He notes -that it works fine with `clang` as well as `gcc` (which is what is used but in -macOS - see below for alternative code - `gcc` is clang). +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 +`fopen()` that was wrong where the mode was instead `44+__FILE__`. Interestingly +enough though this did not seem to be an issue though I cannot explain why. He +notes that it works fine with `clang` as well as `gcc` (which is what is used +but in macOS - see below for alternative code - `gcc` is clang). Additionally Cody provided an alternative version for macOS. See below for the alternative version. Thank you Cody for your assistance!