Attempted solutions to exercises from "The C Programming Language (Second Edition)"