I have string hex ex. std :: string x="68656c6c6f" ; I want to convert it to array of characters each element in the array is 2 hexadecimal numbers ex.
char c[5]={0x68,0x65,0x6c,0x6c,0x6f} ;
I'm using c++, and I already have the string of hexadecimal numbers and I don't have the option to read the values as an array of character.
I can't use scanf("%x",&c[i]);