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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ascii2decimal conversion

Status
Not open for further replies.

zby

Programmer
Oct 31, 2003
22
CZ
In tcl I read a portion of a binary file byte after byte (comes in ascii). To retrieve the desired 'lowlevel' info out of it I need to convert ascii to decimal with tcl functions.
Something like a function in perl:
chr(oct(0x49))....


Any clue on how to do this.
P.S. a newbie.
Thank you.
 
I have found a solution:
append res [scan $buff %c]
Thank you for reading.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top