two to one

2005-11-24 02:07:53 AM
I have two bytes, say 0x01 (high byte) and 0xF4 (low byte)
the two are 0x01F4, which is equivalent to 500 decimal
the two bytes, I am extracting from a char buffer.
I would like to turn the two bytes to an integer?
Thank you,