unsaved change in editor - fixed compile error.
removed atoi and used atol instead to reduce size.