Hi everyone....
Does anyone know of a function in C to converto from hexadecimal to ascii and from ascii to hexadecimal????
Thanks
Printable View
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.
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;
}