Code:
unsigned long l;
unsigned char buf[4] = {0x21, 0x44, 0xf3, 0x86};
l = (unsigned long)buf[0] << 24 |
(unsigned long)buf[1] << 16 |
(unsigned long)buf[2] << 8 |
buf[3];
This code will work with any C compiler, from any vendor, targetting any chip.
--------------------
Mark Pappin - HI-TECH Software