diff --git a/1998/schweikh3/schweikh3.alt.c b/1998/schweikh3/schweikh3.alt.c index b6db1c87b..d1a7cf8b1 100644 --- a/1998/schweikh3/schweikh3.alt.c +++ b/1998/schweikh3/schweikh3.alt.c @@ -77,7 +77,7 @@ i-3; w =e+s+1; l=q+N* (j-1)- j*(j-1 )/ 2 ; do{ * 2; } } M5(q); } Z M2 P(t*p ){ H p){ P(p _ R); H p _ c>1){ M1 i=0 ; f*l= p _ l; for (; i< p _ c; ++i ){ A[i ]= l _ n; l=l _ x; } C (p _ s, p _ c); } P (p _ - L) ; } } int main V { t*r= 0; I F ; for (; ; ) + L) ; } } int main (M7,M6)I*M6; { t*r= 0; I F ; for (; ; ) { H!(F U 1024)) )X H ! fgets( F,1024 ,stdin) )break; *(F+(y =strlen(F))-1)= 0; H!( F=M3(F, y)))X H stat(F,&S)==0 &&S_ISREG(S. st_mode)&&S O )r=J(r ,F ); } H r)P(r ); u 0; }/* Obfuscated C diff --git a/1998/schweikh3/schweikh3.c b/1998/schweikh3/schweikh3.c index ef8aa1c09..5792eff3c 100644 --- a/1998/schweikh3/schweikh3.c +++ b/1998/schweikh3/schweikh3.c @@ -53,7 +53,7 @@ i-3; w =e+s+1; l=q+N* (j-1)- j*(j-1 )/ 2 ; do{ * 2; } } M5(q); } Z M2 P(t*p ){ H p){ P(p _ R); H p _ c>1){ M1 i=0 ; f*l= p _ l; for (; i< p _ c; ++i ){ A[i ]= l _ n; l=l _ x; } C (p _ s, p _ c); } P (p _ - L) ; } } int main V { t*r= 0; I F ; for (; ; ) + L) ; } } int main (M7,M6)I*M6; { t*r= 0; I F ; for (; ; ) { H!(F U 1024)) )X H ! fgets( F,1024 ,stdin) )break; *(F+(y =strlen(F))-1)= 0; H!( F=M3(F, y)))X H stat(F,&S)==0 &&S_ISREG(S. st_mode)&&S O )r=J(r ,F ); } H r)P(r ); u 0; }/* Obfuscated C diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index c7155c10d..65f5c8bff 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -2183,6 +2183,11 @@ Cody added the [alternate code](1998/schweikh3/README.md#alternate-code) which a to reconfigure the size constant in the rare case that the author wrote about occurs. +Cody made `main()` have two args out of an abundance of caution as some versions +of clang say that `main()` can only have 0, 2 or 3 args. These versions accept 1 +arg but it is entirely possible that they fix this so this should prevent it +from breaking if that happens. + Cody added the [try.sh](1998/schweikh3/try.sh) script to make it easier to try the commands that we suggested. One command was not added, that of the to use command.