Merge pull request #341 from xexyl/1990-cmills
This commit is contained in:
3 files changed
+3
-15
No files matched your search
@@ -1,2 +1 @@
|
||||
cmills
|
||||
cmills.alt
|
||||
@@ -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
@@ -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:
|
||||
|
||||
|
||||
Reference in new issue
Block a user