Atoi
Posted: Sat Jan 10, 2004 9:42 pm
I've got a char array and I'm not sure how to send one of the characters in it to atoi properly. Anybody know how?
EDIT: would this be corrent?
Code: Select all
???char hex[MAX];
???result += (ret2 = atoi(?????)) * (ret = pow(16, i));
Code: Select all
???char hex[MAX];
???result += (ret2 = atoi(&hex[i])) * (ret = pow(16, i));