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
|
||||||
cmills.alt
|
|
||||||
@@ -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
@@ -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:
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user