Fix 1993/plummer - check args

This commit is contained in:
Cody Boone Ferguson committed 2023-10-30 05:45:19 -07:00
1 parent d629239eef
commit 641ddafe2a
5 files changed
+7 -33

No files matched your search

-16
View File
@@ -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:
```sh
@@ -69,11 +58,6 @@ make clobber CDEFINE="-DZ=50" alt
./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:
+1 -1
View File
@@ -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
View File
@@ -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);}
-12
View File
@@ -805,18 +805,6 @@ encourage you to test it. This should not be fixed.
# 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
### STATUS: INABIAF - please **DO NOT** fix
+5 -3
View File
@@ -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]))
Cody added an [alternate version](1993/plummer/plummer.alt.c) which uses
`usleep()` so you can see what is happening with faster systems. See the
README.md files for details.
Cody added check for two args.
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]))