Code from Learn C The Hardway