Last change
on this file since 117 was
102,
checked in by rosiere, 16 years ago
|
Previous commit with new files :P
|
-
Property svn:keywords set to
Id
|
File size:
270 bytes
|
Rev | Line | |
---|
[102] | 1 | #include "bool.h" |
---|
| 2 | |
---|
| 3 | #define LittleEndian false |
---|
| 4 | #define BigEndian true |
---|
| 5 | |
---|
| 6 | union TestEndian |
---|
| 7 | { |
---|
| 8 | unsigned long total; |
---|
| 9 | struct |
---|
| 10 | { |
---|
| 11 | unsigned char octet1; |
---|
| 12 | unsigned char octet2; |
---|
| 13 | unsigned char octet3; |
---|
| 14 | unsigned char octet4; |
---|
| 15 | } octets; |
---|
| 16 | }; |
---|
| 17 | |
---|
| 18 | bool endianness (); |
---|
Note: See
TracBrowser
for help on using the repository browser.