Minor clarification to 1986/holloway/README.md

This commit is contained in:
Cody Boone Ferguson committed 2023-03-16 10:19:24 -07:00
1 parent 0956c5445a
commit 75b8931fdc
1 file changed
+7 -6
+7 -6
View File
@@ -10,12 +10,13 @@ USA
make all make all
NOTE: Cody Boone Ferguson fixed this to compile with clang (it worked with gcc). NOTE: [Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to
The problem was that clang is more strict about the type of second arg to compile and work with clang (it already worked with gcc). The problem was that
main(). However simply changing it to a `char **` and updating the `*s` to `**s` clang is more strict about the type of second arg to main(). However simply
caused a segfault. By adding a new variable, `char *t`, initialising it to `s` changing it to a `char **` and updating the `*s` to `**s` caused a segfault. By
and then using `t` instead of `s` it compiles and runs successfully under clang adding a new variable, `char *t`, initialising it to `s` and then using `t`
and gcc. Thank you Cody for your assistance! instead of `s` it compiles and runs successfully under clang and gcc. Thank you
Cody for your assistance!
## Try: ## Try: