Add alt code to 1988/dale - original version

This is because I feel it can be interesting to see side by side what
was once allowed in C with how it has to be today without having to
extract it from the archive.
This commit is contained in:
Cody Boone Ferguson committed 2023-05-20 09:17:28 -07:00
1 parent 65d79be6e8
commit e117f8a0ad
3 files changed
+41 -6

No files matched your search

+13 -4
View File
@@ -1,10 +1,6 @@
# Best abuse of system calls
Paul Dale
University of Queensland
Computer Science Dept
Dept of Computer Science
Uni of Qld, 4067
Australia
## To build:
@@ -54,6 +50,7 @@ so Cody changed the lines to be in the form of:
Thank you Cody for your assistance!
## Try:
```sh
@@ -64,6 +61,18 @@ Thank you Cody for your assistance!
NOTE: in linux it might happen that core dumps are created when running this
entry even though it works fine.
### Alternate code
If you have an old enough compiler you can try the original version in
[dale.alt.c](dale.alt.c). To use:
```sh
make alt
```
Use `dale.alt` as you would `dale` above.
## Judges' remarks
This entry has a very twisted flow of control via recursion, iteration