Working through problems in the book The C Programming Language