Hi everyone....
Does anyone know of a function in C to converto from hexadecimal to ascii and from ascii to hexadecimal????
Thanks
Hi everyone....
Does anyone know of a function in C to converto from hexadecimal to ascii and from ascii to hexadecimal????
Thanks
sprintf, sscanf, assuming "to ASCII" actually has some real meaning.
Quzah.
Hope is the first step on the road to disappointment.
Try this.
Code:#include <stdio.h> int main(void) { unsigned char ascii = 0x32; printf("hex: %02X\n", ascii); printf("ascii: %u\n", ascii); return 0; }