1 2 3 4 5 6 7 8 9 10 11
char _hex_value[256]; void hex_init () { int i; for (i = 0; i < 256; i++) _hex_value[i] = 99; for (i = 0; i < 10; i++) _hex_value['0' + i] = i; }