How can I change a hex character, not string, into a numerical value?
While typing this question, I found many answers on how to convert hex strings to values. Howe
int intval = (hexchar >= 'A') ? (hexchar - 'A' + 10) : (hexchar - '0');