Hi Everyone

I'ts been awhile, I wonder if anyone has turn a char array l myHex DB "3A",0

into a decimal integer 58

I'm trying to make parsing routine for CGI posts, and you get
hex numbers for certain ascii characters, like &
actually once I get the integer, I'm going change it to a char,
I'm just wondering, I have some ideas how I might do it, but
maybe someone has a much more efficient way to go about it,
already written

Thanks
Andy

:)
Posted on 2002-03-08 20:49:16 by andy981
HEX ASCII ---> binary number ---> DEC ASCII

all the code is in MASM32
Posted on 2002-03-08 21:10:07 by bitRAKE
Thanks bitRake


if hexy = "A"


invoke htodw,addr hexy
invoke wsprintf,ADDR intBuffer,ADDR lenIs,eax
invoke StdOut,ADDR intBuffer

It will print 10, and eax will equal 10
Posted on 2002-03-08 21:52:21 by andy981