Code from working through "The C Programming Language, 2nd Edition"