Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ascii hex conversion

Status
Not open for further replies.

pops6

Programmer
Sep 18, 2002
1
US
I have data received in ascii hex values such as 2B for + 30 for 0 , 32 for 2 etc. Can anyone give me good idea on how to convert a string of these values into an integer?
For instance I have a string which is terminated by 30 30 37 in sNum and tried
atoi sNum iNum then formated it for display with
numtostr iNum sNum2 but instead of seeing 7 displayed 37 is displayed. Must be something fundamentally wrong with what I'm doing.

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top