examples from Learn C the Hard Way.