Hello!
As said above (reply #2), it's not a good approach to ask directly for source code.
Write down what you tried, explain where the problems are and other people are more likely to
reply with useful hints.
That said, it depends on what you are trying to do, the question is not very clear.
For example, if you write:
int a = 10;
or
int a = 0x0A;
One is setup in decimal, the other is setup in hexadecimal, but it's exactly the same value and there
is no need for any kind of conversion.
So what are you trying to do?
Are you trying to read an ascii string containing a number coded in hexa?
Dora.