{* *}
code teams

Hex To Char



char hexToChar(char c1, char c2)
{
    c1 = tolower(c1);
    c2 = tolower(c2);

    return ((c2 < 'a')? c2 - '0' : c2 - 'a' + 10) + 
           ((c1 < 'a')? c1 - '0' : c1 - 'a' + 10) * 16;
}