Solutions for exercises in The C Programming Language, 2nd Edition, by Kernighan and Ritchie