hex to ascii converter
Page 1 of 1
hex to ascii converter
#4
Posted 14 April 2009 - 10:18 AM
not really sure what you mean by a "customized ASCII table"?
I would think that you just mean a lookup table:
const char MyASCIITable[256] = { 0x00, 0x01, 0x02, 0x03 ... 0xFE, 0xFF};
Then if you would like to convert a char from regular ASCII to the custom map you would just get: MyASCIITable[ch]
So really you may need to clear up what it is you mean by"customized ascii table" and "hex to ascii".
I would think that you just mean a lookup table:
const char MyASCIITable[256] = { 0x00, 0x01, 0x02, 0x03 ... 0xFE, 0xFF};
Then if you would like to convert a char from regular ASCII to the custom map you would just get: MyASCIITable[ch]
So really you may need to clear up what it is you mean by"customized ascii table" and "hex to ascii".
Page 1 of 1

Start a new topic
Add Reply




MultiQuote



| 


