below is the hex dump function,but what i need is dec dump.
void DumpBytes(unsigned char* inputBytes,int inputBytesLength,char* ouputString)
{
unsigned char const Hex[] = "01234567890abcdef";
for (int i = 0; i < inputBytesLength; i++)
{
unsigned char binByte = inputBytes[i];
ouputString[2*i] = (Hex[(binByte & 0xf0) >> 4]);
ouputString[2*i + 1] = (Hex[binByte & 0x0f]);
}
}
so,how to dump bytes to decimal string instead of heximal string.thanks in advance!