Annotation of coherent/d/usr/src/examples/byteordering.c, revision 1.1.1.1

1.1       root        1: main()
                      2: {
                      3:        union
                      4:        {
                      5:                char b[4];
                      6:                int i[2];
                      7:                long l;
                      8:        } u;
                      9:        u.l = 0x12345678L;
                     10: 
                     11:        printf("%x %x %x %x\n",
                     12:                u.b[0], u.b[1], u.b[2], u.b[3]);
                     13:        printf("%x %x\n", u.i[0], u.i[1]);
                     14:        printf("%lx\n", u.l);
                     15: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.