Use atol instead of strtol