tomdagliusa
Programmer
If I parse the expect_out buffer and extract a string, how do I then convert that string into a number?
My goal is to extract the string: ex. 01234567
Then convert the string into hex: ex. 0x01234567
Then do ands or or's with the hex value:
set hi_word_mask "FFFF0000"
set hi_word_value [expr $hi_word_mask & $hex_value]
Now that I type the question, I can think of another.
How do I make my variable "hi_word_mask" a number,
and not a string?
Thanks,
Tom
My goal is to extract the string: ex. 01234567
Then convert the string into hex: ex. 0x01234567
Then do ands or or's with the hex value:
set hi_word_mask "FFFF0000"
set hi_word_value [expr $hi_word_mask & $hex_value]
Now that I type the question, I can think of another.
How do I make my variable "hi_word_mask" a number,
and not a string?
Thanks,
Tom