Practice code from Learn C The Hard Way