A port to C of my 118h project, for /r/DailyProgrammer