Exercises from "the C programming language" by Kernighan and Ritchie