Merge pull request #341 from xexyl/1990-cmills

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-04-08 06:48:51 -07:00
commit 0ae952aa76
3 files changed
+3 -15

No files matched your search

-1
View File
@@ -1,2 +1 @@
cmills
cmills.alt
+2 -2
View File
@@ -115,8 +115,8 @@ OBJ= ${PROG}.o
DATA=
TARGET= ${PROG}
#
ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ${PROG}.alt
ALT_OBJ=
ALT_TARGET=
#################
+1 -12
View File
@@ -26,8 +26,7 @@ for your assistance!
using `fgets()` instead of `gets()`. This avoids a potentially alarming warning
at linking or runtime. Thank you Cody for your assistance!
The original bug fixed version is in [cmills.alt.c](cmills.alt.c), described in
the `Alternate code` section.
For the original code see the [1992 archive](/archive/archive-1990.tar.bz2).
## Try:
@@ -36,16 +35,6 @@ the `Alternate code` section.
./cmills 5000
```
### Alternate code:
For the original version that uses `gets()` try:
```sh
make alt
```
Use `cmills.alt` as you would `cmills`.
## Judges' comments: