Possible Duplicate:
How would you convert from ASCII to Hex by character in C?
I like to convert a hex value, represented in ascii code to the number represented by the hex value.
As an example:
A5 should convert to 0xA5 (which is 165)
But A5 is represented in ASCII (so something like 0x4135 I guess)
Any ideas?
Thx!
Use
strtol.