Fix typos, formatting and thank yous (add links)
In some files changed the formatting was fixed to be a proper markdown file. There were some typos including that some README.md files that linked to /winners.html#Cody_Boone_Ferguson actually linked to the non-existent file /years which obviously would not work. I also added links to the rest of the places I have fixed entries (but see below) and I did the same for Yusuke Endoh's fixes. As well apparently one entry I thought he fixed to compile under modern systems does not seem to so that entry will have to be revisited another time. That entry was 1993/jonth. Those are the main changes here if not all of them.
This commit is contained in:
1 parent
ecaa022948
commit
fa682003eb
24 files changed
+146
-113
No files matched your search
@@ -14,8 +14,10 @@
|
||||
|
||||
./cmills [starting_cash]
|
||||
|
||||
NOTE: we used a patch from Yusuke Endoh to get this to work in modern systems
|
||||
(it resulted in a bus error otherwise). Thank you Yusuke for your assistance!
|
||||
We used a patch from [Yusuke Endoh](/winners.html#Yusuke_Endoh) to get this to
|
||||
work in modern systems (it resulted in a bus error otherwise). Thank you Yusuke
|
||||
for your assistance!
|
||||
|
||||
|
||||
### Try:
|
||||
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@
|
||||
make all
|
||||
|
||||
|
||||
Modern compilers could not compile this entry but Yusuke Endoh supplied a patch
|
||||
which lets it compile. Thank you Yusuke!
|
||||
[Yusuke Endoh](/winners.html#Yusuke_Endoh) fixed this for modern systems. Thank
|
||||
you Yusuke!
|
||||
|
||||
### To run
|
||||
|
||||
|
||||
+3
-2
@@ -23,8 +23,9 @@
|
||||
|
||||
make all
|
||||
|
||||
NOTE: as `btoa` is not common we used a ruby script from Yusuke Endoh. Thank you
|
||||
Yusuke for your implementation of `btoa`!
|
||||
NOTE: as `btoa` is not common we used a ruby script from [Yusuke
|
||||
Endoh](/winners.html#Yusuke_Endoh). Thank you Yusuke for your implementation of
|
||||
`btoa`!
|
||||
|
||||
### Try:
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@ Modern compilers might fail to compile this entry:
|
||||
|
||||
|
||||
but we were able to get it to compile with modern compilers by specifying the
|
||||
`-ansi` flag with a tip from Yusuke Endoh. Thank you Yusuke!
|
||||
`-ansi` flag with a tip from [Yusuke Endoh](/winners.html#Yusuke_Endoh). Thank
|
||||
you Yusuke!
|
||||
|
||||
|
||||
### To run:
|
||||
|
||||
+19
-5
@@ -17,16 +17,28 @@
|
||||
|
||||
make all
|
||||
|
||||
NOTE: modern compilers had a problem with this entry because the `exit(3)`
|
||||
function returns void but [Cody Boone Ferguson](/winners#Cody_Boone_Ferguson)
|
||||
got it to work with the use of a comma operator. Thank you Cody!
|
||||
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to work with
|
||||
modern computers; `exit(3)` returns void but the function was used in a binary
|
||||
expression so this would not even compile. Thank you Cody for your assistance!
|
||||
|
||||
### To run
|
||||
|
||||
## To run:
|
||||
|
||||
./tbr
|
||||
# enter some shell commands
|
||||
|
||||
## Try:
|
||||
|
||||
./tbr
|
||||
ls -l tbr tbr.c
|
||||
# notice how the following does not work:
|
||||
ls tbr*
|
||||
# try figuring out how this entry works in an editor:
|
||||
vi tbr.c
|
||||
# then figure out how to exit vi :-)
|
||||
|
||||
|
||||
## Judges' comments
|
||||
## Judges' comments:
|
||||
|
||||
|
||||
This program touches on a well known Unix utility, the 6th edition Bourne Shell
|
||||
@@ -54,6 +66,8 @@ of the program which we include below:
|
||||
|
||||
## Author's comments
|
||||
|
||||
Rot13:
|
||||
|
||||
Guvf cebtenz vf n ehqvzragnel furyy. Vg qbrf v/b erqverpgvba, cvcrf
|
||||
naq pq. Vg syntf reebef ba snvyrq puqve'f, bcra'f, perng'f
|
||||
rkrpic'f, sbex'f naq n srj flagnk reebef.
|
||||
|
||||
@@ -11,10 +11,12 @@
|
||||
|
||||
make all
|
||||
|
||||
NOTE: thanks to Yusuke Endoh for the pointing out that `atof()` nowadays needs
|
||||
`#include <stdlib.h>` in order to get this to work. Thanks also to Cody Boone
|
||||
Ferguson for fixing some segfaults under modern (and in some cases earlier)
|
||||
systems with this entry.
|
||||
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed some segfaults
|
||||
under modern (and in some cases earier) systems with this entry. Thank you Cody!
|
||||
|
||||
[Yusuke Endoh](/winners.html#Yusuke_Endoh) pointed out that `atof` nowadays
|
||||
needs `#include <stdlib.h>` which was used in order to get this to work
|
||||
initially. Thank you Yusuke!
|
||||
|
||||
|
||||
## To run:
|
||||
|
||||
@@ -183,7 +183,6 @@ all: data ${TARGET}
|
||||
supernova deep_magic magic charon pluto
|
||||
|
||||
${PROG}: ${PROG}.c
|
||||
@echo "NOTE: This entry might not compile when using modern compilers."
|
||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||
|
||||
# alternative executable
|
||||
|
||||
+32
-26
@@ -12,24 +12,30 @@
|
||||
|
||||
### To run
|
||||
|
||||
./westley 1
|
||||
./westley number
|
||||
|
||||
NOTE: [Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to
|
||||
compile under modern systems. Thank you Cody for your assistance!
|
||||
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this for modern
|
||||
systems. Thank you Cody for your assistance!
|
||||
|
||||
NOTE: this entry will segfault without an arg and will enter an infinite loop if
|
||||
input is not a number (or is a negative number).
|
||||
input is not a positive number.
|
||||
|
||||
|
||||
## Try:
|
||||
|
||||
./westley 1
|
||||
./westley 2
|
||||
./westley 3
|
||||
./westley 5
|
||||
|
||||
## Judges' comments
|
||||
|
||||
usage: westley <number>
|
||||
|
||||
If you would rather "Daisy" someone other than Westley, rename
|
||||
the program as needed. :-)
|
||||
If you would rather "Daisy" someone other than Westley, rename
|
||||
the program as needed. :-)
|
||||
|
||||
Read each block of code as if it were a piece of correspondence.
|
||||
For example, the first block of code would read:
|
||||
Read each block of code as if it were a piece of correspondence.
|
||||
For example, the first block of code would read:
|
||||
|
||||
charlie,
|
||||
doubletime me, OXFACE!
|
||||
@@ -37,30 +43,30 @@ input is not a number (or is a negative number).
|
||||
mainly die, charly, *die*
|
||||
signed charlotte
|
||||
|
||||
The original source had control-L's after each code block. To
|
||||
make it easier on news readers, we converted each control-L to
|
||||
a blank line.
|
||||
The original source had control-L's after each code block. To
|
||||
make it easier on news readers, we converted each control-L to
|
||||
a blank line.
|
||||
|
||||
Some modern compilers will not accept '1s' as a short integer - for
|
||||
these compilers we replaced the instances of `1s` with `1`.
|
||||
Some modern compilers will not accept '1s' as a short integer - for
|
||||
these compilers we replaced the instances of `1s` with `1`.
|
||||
|
||||
|
||||
## Author's comments
|
||||
|
||||
This is a "Picking the Daisy" simulation. Now, instead of mangling a
|
||||
daisy, simply run this program with the number of petals desired as
|
||||
the argument.
|
||||
|
||||
This is a good counter-example to peoples' complaints that C doesn't
|
||||
have an "English-like" syntax.
|
||||
|
||||
Lint complains about everything - null effect, xxx may be used before
|
||||
set, statement not reached, return(e) and return. Lint dumps core
|
||||
on some systems. My personal favorite lint complaint is
|
||||
|
||||
This is a "Picking the Daisy" simulation. Now, instead of mangling a
|
||||
daisy, simply run this program with the number of petals desired as
|
||||
the argument.
|
||||
|
||||
This is a good counter-example to peoples' complaints that C doesn't
|
||||
have an "English-like" syntax.
|
||||
|
||||
Lint complains about everything - null effect, xxx may be used before
|
||||
set, statement not reached, return(e) and return. Lint dumps core
|
||||
on some systems. My personal favorite lint complaint is
|
||||
|
||||
"warning: eroticism unused in function main".
|
||||
|
||||
Also obviously, (char)lotte and (char*)lie are incompatible types...
|
||||
Also obviously, `(char)lotte` and `(char*)lie` are incompatible types...
|
||||
|
||||
Copyright (c) 1990, Landon Curt Noll & Larry Bassel.
|
||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||
|
||||
Reference in new issue
Block a user