My code as I work through the 'Learning C the Hard Way' book.