I have hexadecimal values stored as characters:
char A = \'0\'; char B = \'6\'; char C = \'E\';
... I need them coverted to integers. I kno
int v = (A > '9')? (A &~ 0x20) - 'A' + 10: (A - '0');
is correct for ASCII. For other character sets, a similar approach would work, but you would then want toupper instead of &~ 0x20.
toupper
&~ 0x20