Sample code in the book: The C Programming Language