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