Hi all,
I am reading characters from a file input stream and printing out their 1. ASCII value or control mnemonic 2. Binary Value 3. Hexidecimal Value.
My problem is if the the current character I am reading in and then outputing is a TAB it prints an actual tab to screen. I would like instead to be able to print "TAB" for example.
FILE *fp;
inchar = fgetc(fp)
printf("%x",inchar);
etc.
Any help would be appreciated.



LinkBack URL
About LinkBacks


