i have a string of char, and want to see the contents in decimal with this:
for(j=0;j<i;j++) printf("%d,", inbuf[j]);
but for 127 < inbuf[j] < 255, i get a signed int (expected), so how do i see the right value?
for(j=0;j<i;j++) printf("%u,", inbuf[j]);
but i get incorrect (very big) value - i assume it represents the char as the high byte of an int maybe(?)
i have tried other combinations... any suggestions most appreciated.