Using atoi to compare char array with int

That's helpful. Once I got to values over 8, it would create problems. Thanks!