Add another program for 2001/anonymous

This sings a different counting song, Ten in the Bed. It uses another C
feature (a char *[]) that the Ten Green Bottles does not use. This is
for fun as well as to show another program (with a different C feature)
that the program works on, again assuming -m32 is allowed.

Instead of using numbers it uses strings (as expected with a char *[])
in the singing.

This was for fun (and to see if the program would work on arrays) after
I remembered the song in a comment on GitHub - about the Ten Green
Bottles song.
This commit is contained in:
Cody Boone Ferguson committed 2023-05-21 09:09:54 -07:00
1 parent 1b9ea65e05
commit 93684cfc19
4 files changed
+64 -2

No files matched your search

+16
View File
@@ -67,12 +67,28 @@ Finally to see from start to finish:
git diff d2a42f42e8f477f29e9d5ed09ce2bb349eaf7397..4bc03de321612869aebf855850c6500df95cb6ef anonymous.c
```
Cody also added a [program](anonymous.bed.c) like [anonymous.ten.c](anonymous.ten.c)
[Ten Green Bottles](https://en.wikipedia.org/wiki/Ten_Green_Bottles) but which
sings [Ten in the Bed](https://allnurseryrhymes.com/ten-in-the-bed/). Why? For
fun and so that there's another program that is a bit different (it uses a `char
*[]` array for example) that this program will still work on. To use:
```sh
make anonymous.bed # if able to use -m32
./anonymous anonymous.bed
make anonymous.bed.64 # if unable to use -m32
./anonymous.bed.64
```
Thank you Cody for your assistance!
## Try:
```sh
./try.me.sh
./anonymous anonymous.bed # if able to use -m32
```
What happens if the x86 program has already been modified by this program? The