I have a hex string and want to convert this to a hex unsigned char array!
std::string hex = "0c45a1bf"
unsigned char hexCh = ""
[0] = "0c"
[1] = "45"
[2] = "a1"
[3] = "bf"
I want this bevavior shown in hexCh!
Best way over stringstream and std::hex? Have you an implementation?!
Thx
A possible solution: (thx Denis Ermolin):