Solutions: "The C Programming Language" 2nd Edition, Brian W Kernighan & Dennis M. Ritchie