So I'm writing a series of functions, and then I try to compile, I get errors talking about parentheses. I've looked over my code, and I can't find any mismatched parenthesis. Can anyone tell me what I'm doing wrong>
int str_to_int(char* str)
{
int sum = 0;
int x;
for(x=strlen(str) ; x>=2 ; x--) {
if(30 <= str[x] <= 39) {
sum += raise16((str[x] - 30) x);
};
if(41 <= str[x] <= 46) {
sum += raise16((str[x] - 41) x);
};
if(61 <= str[x] <= 66) {
sum += raise16((str[x] - 61) x);
};
}
return sum;
}