I have a character array containing hexadecimal digits, and I need to convert it into an unsigned integer. I thought there must be a way to do this, if the character array is a variable.
Something like this:
1 2 3 4 5 6 7 8 9 10 11 12
int htoi ( char s[] )
{
if (isxdigit(s[i]))
return (unsignedint) s[i] << char * s[i]
}