Add second arg to main in 2004/kopczynski

This commit is contained in:
Cody Boone Ferguson committed 2023-11-25 11:10:45 -08:00
1 parent 9c9c0d3962
commit 4e736301ad
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
main(O){int I,Q,l=O;if(I=l*4){l=6;if(l>5)l+=Q-8?l-(Q=getchar()-2)%2:l;if(Q*=2)O+="has dirtiest IF"[(I/-Q&12)-l/Q%4];}printf("%d\n",8+O%4);}
main(O,S)char**S;{int I,Q,l=O;if(I=l*4){l=6;if(l>5)l+=Q-8?l-(Q=getchar()-2)%2:l;if(Q*=2)O+="has dirtiest IF"[(I/-Q&12)-l/Q%4];}printf("%d\n",8+O%4);}
+4
View File
@@ -2750,6 +2750,10 @@ Finally Cody added [try.sh](2004/jdalbec/try.sh) and
Cody reported that this entry cannot be optimised by the compiler as otherwise
it will not work.
Cody, out of an abundance of caution for clang, added a second arg to `main()`
as some versions complain about the number of args and although they accept 1 it
is entirely possible it will eventually be that they don't.
Cody also added the [try.sh](2004/kopczynski/try.sh) script and various data
files: [kopczynski-a](kopczynski-a) to demonstrate what happens when art more
like a letter is fed to the program and the `kopczynski*-rev` files which are