Garbage is a repository of useless toy programs and basic coreutils
clones.
Program Name | Description |
---|---|
cat |
coreutils cat clone |
cp |
coreutils cp clone |
echo |
coreutils echo clone |
fizz |
modular FizzBuzz |
getsize |
prints terminal rows/cols to stdout |
passgen |
diceware password generator |
rps |
rock, paper, scissors game |
snek |
ncurses snake game |
tempcalc |
temperature converter |
yes |
coreutils yes clone |
getsize
and snek
require a curses
implementation like ncurses
or
similar.
passgen
requires sodium
.
All programs should include a Makefile
and some include a primitive install as
follows:
$ make programname
gcc -c programname.c -Wall -Wextra -Wpedantic -std=c99
gcc -o programname programname.o -Wall -Wextra -Wpedantic -std=c99
$ make install
sudo cp programname /usr/bin/programname
NB: Programs that could potentially rewrite system programs are renamed (e.g.,
myecho
instead of echo
).