I want to convert string to integer. My string values are something like 0x000,0x0001 and etc(i.e. values are in hexadecimal format). if i used atoi() function then it will take only 0.
but i want the entire string.
e.g.
string abc = "0x0000";
i want...
int i = 0x0000;
can anyone help me to solve this problem. Reply me ASAP