Learn C The Hard Way

Exercises 7, 8, and 9