Merge pull request #66 from xexyl/1986

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