Say I have a string like:
string hex = "48656c6c6f";
Where every two characters correspond to the hex representation of their ASCII, value, eg:
0x48 0x65 0x6c 0x6c 0x6f = "Hello"
So how can I get "hello"
from "48656c6c6f"
without having to create a lookup ASCII table? atoi()
obviously won't work here.