Some solutions to the exercises in "The C Programming Language" by Kernighan and Ritchie (2nd edition)