Solutions to exercises from K&R (The C Programming Language, 2nd Ed.)