Solutions to Kerrighan's and Ritchie's "The C Programming Language"