[an error occurred while processing this directive]
|
#define BYTES(x) ((unsigned char *)&(x))
#define WORDS(x) ((unsigned int *)&(x))
long l = 0x12345678;
unsigned char c = BYTES(l)[2]; // = 0x34
unsigned int i = WORDS(l)[1]; // = 0x1234;
E-mail: info@telesys.ru