Examples and exercises from The C Programming Language