Using atoi to compare char array with int

If you want to keep the char array, you can test it using strcmp.