Exercise solutions from Zed Shaw's 'Learn C The Hard Way'