Convert String to int

SurferTim:
This should work.

char myStr[3] = {'1','2',0};

int myInt = atoi(myStr);

Thanks a lot for your Help :)!