Is there a better way of doing this? I just want `atoi(line)`.