UShort2Short - Interpret an unsigned 16 bit integer as signed
|Top Previous Next|
<nShort> := UShort2Short( <nUShort> )
The SHORT value that results if the bits in <nUShort> are interpreted as signed.
UShort2Short "converts" (actually reinterprets) an unsigned 16 bit value into a signed 16 bit value. In C a 16bit value can be interpreted in different ways. This interpretation is defined by the type. For example the binary value 11111111 11111111 could be interpreted as +65535 (USHORT) or as -1 (SHORT).
Library: cckptcor.lib / cckptcor.dll