Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool isBigEndian()
- {
- bool big = false;
- unsigned int n = 0x01020304;
- unsigned char c = *(unsigned char*)(n);
- if (n == 0x01)
- {
- big=true;
- }
- return big
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement