typedef union
{
struct
{
unsigned short int16e;
unsigned short int16f;
} structure;
unsigned int tab[1];
} structTest_t;
structTest_t lit2big;
lit2big.structure.int16e= 0xf055;
lit2big.structure.int16f= 0xf066;
shr(&lit2big.structure.int16e, 0xad0b);
// print it:
int16e = F055 <- wanted to swap and assign there but didn't
int16f = BAD <- this other got swapped