Remove 1990/cmills alt code

The alt code was the version that works for modern systems before the
gets()/fgets() change (the fix being changing a read only char * to a
char []) but this is not at this time in the archive. The README.md file
refers to the archive, noting it is the original code before the bug
fix.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-08 03:30:58 -07:00
1 parent af1028c4c7
commit ddbc5152ab
3 files changed
+3 -15

No files matched your search

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