I'm working on an IR program (based off of Vanya Sergeev's), and I was wondering if there's any way to display the data in hex?
Currently, it only displays odd symbols, which do not help very much.
Thanks
[Fixed] Displaying binary data in hex?
[Fixed] Displaying binary data in hex?
Last edited by flaxum on Tue Nov 15, 2005 9:28 am, edited 1 time in total.
Following on from weltall's reply, I usually useTo zero pad the number out to 8chars, or 32 bits.
Code: Select all
printf("variable x: %08x\n", variable_x);
Damn, I need a decent signature!