C
cppbeginner
Hello,
Newbie question: I have a string of nibbles (say 2b11cc4f5db20cd5)
that can be put as
#define DATA 0x2b11cc4f5db20cd5 or
#define DATA "2b11cc4f5db20cd5"
Need to read this into a uint8 array buf such that each byte
represents a hex digit (formed out of 2 nibbles in DATA). What do you
think is the best way to do this?
Thanks for your help.
Newbie question: I have a string of nibbles (say 2b11cc4f5db20cd5)
that can be put as
#define DATA 0x2b11cc4f5db20cd5 or
#define DATA "2b11cc4f5db20cd5"
Need to read this into a uint8 array buf such that each byte
represents a hex digit (formed out of 2 nibbles in DATA). What do you
think is the best way to do this?
Thanks for your help.