Fix 1993/plummer - check args
This commit is contained in:
1 parent
d629239eef
commit
641ddafe2a
5 files changed
+7
-33
No files matched your search
@@ -13,17 +13,6 @@ make all
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Bugs and (Mis)features
|
|
||||||
|
|
||||||
The current status of this entry is:
|
|
||||||
|
|
||||||
```
|
|
||||||
STATUS: known bug - please help us fix
|
|
||||||
```
|
|
||||||
|
|
||||||
For more detailed information see [1993 plummer in bugs.md](/bugs.md#1993-plummer).
|
|
||||||
|
|
||||||
|
|
||||||
## To use:
|
## To use:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -69,11 +58,6 @@ make clobber CDEFINE="-DZ=50" alt
|
|||||||
./plummer.alt xyzzyzzyx 5555
|
./plummer.alt xyzzyzzyx 5555
|
||||||
```
|
```
|
||||||
|
|
||||||
### INABIAF - it's not a bug it's a feature :-)
|
|
||||||
|
|
||||||
This entry will very likely crash or do something else if you run it without
|
|
||||||
enough args.
|
|
||||||
|
|
||||||
|
|
||||||
## Judges' remarks:
|
## Judges' remarks:
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
char*_,*O;main(S,l)char**l;{*(O=*(l+++S-1)-1)=13,*l[1]=0;for(;;)for(printf(*l),_=O-1,usleep(Z);_>=*l&&++*_>(S+*O+S)*S;*_--=(S+*O)*S);}
|
char*_,*O;main(S,l)char**l;{if(S<3)exit(1);*(O=*(l+++S-1)-1)=13,*l[1]=0;for(;;)for(printf(*l),_=O-1,usleep(Z);_>=*l&&++*_>(S+*O+S)*S;*_--=(S+*O)*S);}
|
||||||
@@ -1 +1 @@
|
|||||||
char*_,*O;main(S,l)char**l;{*(O=*(l+++S-1)-1)=13,*l[1]=0;for(;;)for(printf(*l),_=O-1;_>=*l&&++*_>(S+*O+S)*S;*_--=(S+*O)*S);}
|
char*_,*O;main(S,l)char**l;{if(S<3)exit(1);*(O=*(l+++S-1)-1)=13,*l[1]=0;for(;;)for(printf(*l),_=O-1;_>=*l&&++*_>(S+*O+S)*S;*_--=(S+*O)*S);}
|
||||||
@@ -805,18 +805,6 @@ encourage you to test it. This should not be fixed.
|
|||||||
# 1993
|
# 1993
|
||||||
|
|
||||||
|
|
||||||
## 1993 plummber
|
|
||||||
|
|
||||||
### STATUS: known bug - please help us fix
|
|
||||||
### Source code: [1993/plummer/plummer.c](1993/plummer/plummer.c)
|
|
||||||
### Information: [1993/plummer/README.md](1993/plummer/README.md)
|
|
||||||
|
|
||||||
If not enough args are specified this program will likely crash or do something
|
|
||||||
else.
|
|
||||||
|
|
||||||
If you want to try and fix this (mis)feature, you are welcome to try.
|
|
||||||
|
|
||||||
|
|
||||||
## 1993 lmfjyh
|
## 1993 lmfjyh
|
||||||
|
|
||||||
### STATUS: INABIAF - please **DO NOT** fix
|
### STATUS: INABIAF - please **DO NOT** fix
|
||||||
|
|||||||
+5
-3
@@ -1251,9 +1251,11 @@ this was made the alternate version, not the actual entry.
|
|||||||
|
|
||||||
## [1993/plummer](1993/plummer/plummer.c) ([README.md](1993/plummer/README.md]))
|
## [1993/plummer](1993/plummer/plummer.c) ([README.md](1993/plummer/README.md]))
|
||||||
|
|
||||||
Cody added an [alternate version](1993/plummer/plummer.alt.c) which uses
|
Cody added check for two args.
|
||||||
`usleep()` so you can see what is happening with faster systems. See the
|
|
||||||
README.md files for details.
|
Cody also added an [alternate version](1993/plummer/plummer.alt.c) which uses
|
||||||
|
`usleep()` so you can see what is happening with faster systems. This version
|
||||||
|
also checks for two args. See the README.md files for details.
|
||||||
|
|
||||||
|
|
||||||
## [1993/rince](1993/rince/rince.c) ([README.md](1993/rince/README.md]))
|
## [1993/rince](1993/rince/rince.c) ([README.md](1993/rince/README.md]))
|
||||||
|
|||||||
Reference in new issue
Block a user