viewed 3744 times and licensed 81 times
Returns true if the computer architecture is Big Endian, false otherwise.
View other versions (5)
Contents  |
|
Interface
#include <codecogs/computing/lowlevel/is_big_endian.h>
using namespace Computing::Lowlevel;
| bool | isBigEndian () Returns true if the computer architecture is Big Endian, false otherwise. |
 | Boolean | cc_lowlevelIsBigEndian () This function is available as a Microsoft Excel add-in. |
Function Documentation
For more information about the computer architecture theory behind this algorithm, please visit:
http://en.wikipedia.org/wiki/Endianness
Example 1:
- The following program displays whether the computer architecture is Big Endian
or not (the opposite would most probably be Little Endian, but there are also
other non-Big Endian architectures).
#include <iostream>
#include <codecogs/computing/lowlevel/is_big_endian.h>
using namespace std;
int main()
{
cout << "Computer architecture is ";
if (Computing::Lowlevel::isBigEndian()) cout << "Big Endian.";
else cout << "Little Endian (or other non-Big Endian).";
cout << endl;
return 0;
}
Authors:
- Lucian Bentea (August 2005)
Page Comments
You must login to leave a messge
Last Modified: 7 Sep 08 @ 14:14 Page Rendered: 2010-03-14 04:00:18