10 Commits
Author SHA1 Message Date
Cody Boone Ferguson 5210b6a30b Fix a fix in 1998/schnitzi
In particular arg check was invalid. This was one of the programs that
was thought it should be checked as it's such a beautiful program.
2023-11-11 12:34:02 -08:00
Cody Boone Ferguson 459fff8859 Improve fixes to 1998/schnitzi
The author stated that there was no 'if's and I have made it that way
now.

The author stated that the number should be > 0 && < 27 so I added the
range check (was previously != 0). Too high value could segfault and < 0
was problematic too. 27 itself was code that could not compile. Since
the program is so beautiful it had been decided to fix the problems
which is why these changes were added too.

The above was done like:

    ((V[1]&&((atoi(V[1])>0&&atoi(V[1])<27)||(exit(1),1))));

The try.sh script has been added to the entry to try out a lot of
commands instead of copy pasting it from the judges' remarks.

Removed duplicate INABIAF information from README.md (which is why the
other updates).

Updated bugs.md with more information to the features like how output
can end up being gigabytes in length depending on the number specified
to the program. Removed from the bugs.md details about warnings to
ignore as the compiler -Wno- options take care of that now. Extra
parentheses were added to the above to prevent another warning (I was
not sure if all compilers and versions had the -Wno- so I decided to fix
it in the code itself).

The try section has a question to ponder as well. The detail is also in
the bugs.md file.
2023-11-02 09:53:57 -07:00
Cody Boone Ferguson 3958bbdb04 Reapply segfault fixes in 1998/schnitzi
After discussing it with Landon it was recommended that these fixes be
reapplied.

Updated bugs.md wrt this.

README.md has had formatting fixes as well.

Updated URL for author as it has changed. It's very little on his page
and the only page that suggests it is his is the ioccc.html page. I
couldn't find anything else.
2023-04-10 06:32:28 -07:00
Cody Boone Ferguson ad9efe502a Undo two checks in 1998/schnitzi
As part of the redefinition of INABIAF two segfault fixes were undone.
These are noted in the Makefile and README.md file.

One fix was necessary and that has been left alone.
2023-04-07 10:46:28 -07:00
Cody Boone Ferguson 1f6e7f2aa0 Fix another segfault in 1998/schnitzi
The program would also crash if the arg had any character that's not a
digit or if the arg had only 0s in it (it would work if it had 0
followed by a digit other than 0). In other words if it is converted to
0 it would segfault.

The bugs.md file has been updated as well to note what's also now in the
README.md file: even a relatively small number can cause a substantial
amount of lines of output. For instance the number 9 causes 771999 lines
(!!) of output.
2023-03-29 11:46:03 -07:00
Cody Boone Ferguson 1071baceba Fix another segfault in 1998/schnitzi
If no arg was given to the program it would segfault also. Now it is
effectively a no-op.
2023-03-26 12:39:25 -07:00
Cody Boone Ferguson 39b1e26947 Fix 1998/schnitzi for macOS too
It no longer segfaults and works as expected in both linux and macOS!
2023-03-24 08:14:07 -07:00
Cody Boone Ferguson 5506ea989d Fix 1998/schnitzi for linux
It segfaulted due to wrong type of a variable.

It still crashes under macOS which I will be looking at in the near
future but it at least works for linux.

I noted in the bugs.md a compiler warning that should not be changed as
it's not a bug and in fact 'fixing' it will introduce a bug.
2023-03-24 05:30:33 -07:00
Landon Curt Noll 37b80374df fix 1998 Makefiles 2023-02-27 15:11:50 -08:00
Landon Curt Noll d2a42f42e8 Move 1988-2004 entries into subdirs
We we move 1988-2004 entries from all of a year's winning entries
in a single directory to each winner being in their own sub-directory
under the given year directory.
2022-09-18 23:37:49 -07:00