/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>

int main()
{
    unsigned char b0 = 1, b1 = 2, b2 = 3, b3 = 4;
    unsigned long int v;
    v  = (b3 << 24) | (b2 << 16) | (b1 << 8) | b0; 
    printf("%08x\n", v);
    return 0;
}
