Possible Duplicate:
C++ convert hex string to signed integer
I have the string line which is a hexadecimal number say like 12ab43c..(but I have read it as a string) and I would like to pass it to an unsigned char* linehex or directly to a hexadecimal so I can later use it in my program for further computations. Which is the most efficient way to do this?