Revision: | 1.1 |
Committed: | Sun Aug 15 00:37:04 2004 UTC (19 years, 11 months ago) by root |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | rel-3_7 |
Log Message: | *** empty log message *** |
# | Content |
---|---|
1 | #include <cstdlib> |
2 | #include <cstring> |
3 | #include <inttypes.h> |
4 | |
5 | #include "rxvtutil.h" |
6 | |
7 | class byteorder byteorder; |
8 | |
9 | byteorder::byteorder () |
10 | { |
11 | union { |
12 | uint32_t u; |
13 | uint8_t b[4]; |
14 | } w; |
15 | |
16 | w.b[0] = 0x11; |
17 | w.b[1] = 0x22; |
18 | w.b[2] = 0x33; |
19 | w.b[3] = 0x44; |
20 | |
21 | e = w.u; |
22 | } |
23 | |
24 | |
25 |