Code:
unsigned long x = 0xffffffff;

unsigned char y = x & 0x1;
// or (depends on architecture)
unsigned char y = x & 0x80000000;
Depending on whether the compiler decides to do any playing around with your endians (as it were)...

[Edited by parksie on 11-20-2000 at 04:40 PM]