Hi,
i am using the following code, in order to convert a char array (or string) to its hexadecimal representation:
However, i get back the "0x00" value. With other "experiments" i didn't also manage to get the "0x13" back.Code:byte hexval=0x00; cout << "sscanf: "; char car2[2]; car2[0]='1'; car2[1]='9'; sscanf( car2, "0x%02X", &hexval ); printf("0x%02X", hexval);
Ideas?
Thanks