use strtol instead of atol