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
:)
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
:)
HEX ASCII ---> binary number ---> DEC ASCII
all the code is in MASM32
all the code is in MASM32
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
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