KEIL 9.55
This works:
unsigned char code ID_Data_02[9]="\x02 1234567";
but what I really want is:
unsigned char code ID_Data_02[8]="\x021234567";
in the first case I just transmit using *(p+0)
, followed by *(p+2)
and ignore the white space that is delineating the hex vs ASCII component.
Anyone know something tidier?
K&R defines \x
to indicate 1 or more hex char
s - tried \2x02
- seems like it's assumed the hex continues indefinitely until and non-0
toF
is encountered.