0

I have a string of hex values stored in a single string, such as:

string ex = "9715AF";

Where I want to store it in an array, as actual hex values:

unsigned char byteList[] = { 0x97, 0x15, 0xAF };

Is this something that's possible? I was trying to convert them to ASCII then decimal, but this didn't work out so well. Any advice is appreciated.

0 Answers0