Another option is to use a union which is described
here.[
^]
This is an example :
typedef union uShortBytes
{
UCHAR Bytes[2];
WCHAR Wchar;
UINT16 Ushort;
struct
{
UCHAR Low;
UCHAR High;
} HiLo;
} ShortBytes;
ShortBytes sb;
sb.Ushort = 938;
printf( " low order byte is %3u\n", sb.HiLo.Low );
printf( "high order byte is %3u\n", sb.HiLo.High );