H
Herwig
unsigned short int i;
char c[] = { 0x00, 0x04, 0x00, 0x0C, 'A', 'B', 'C', 0x00 };
^^^^^^^^^^^
The 3rd and 4th byte represent the short value "12".
Q: what is the easiest way to copy these 2 bytes from c to i?
Herwig
char c[] = { 0x00, 0x04, 0x00, 0x0C, 'A', 'B', 'C', 0x00 };
^^^^^^^^^^^
The 3rd and 4th byte represent the short value "12".
Q: what is the easiest way to copy these 2 bytes from c to i?
Herwig