Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.34 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.34 KB

Garbage

Description

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

Dependencies

getsize and snek require a curses implementation like ncurses or similar.
passgen requires sodium.

Installation

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).