Converting char array into int array

i am having trouble finding a way to convert a char array into an int array.
say i had a char array:
char dogs[10] = {'31', '29', '34', '21', '35', '23', '63', '21', '34', '0\'}

What is the easiest way to convert that array into this?
int cats[9] = {31, 29,34,21,35,23,63,21,34}

Any help would be greatly apreciated
Topic archived. No new replies allowed.