GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
endian.c
Go to the documentation of this file.
1
29
int
G_is_little_endian
(
void
)
30
{
31
union
32
{
33
int
testWord;
34
char
testByte[
sizeof
(int)];
35
} endianTest;
36
37
endianTest.testWord = 1;
38
39
if
(endianTest.testByte[0] == 1)
40
return
1;
/* true: little endian */
41
42
return
0;
/* false: big endian */
43
}
lib
gis
endian.c
Generated on Sun Mar 16 2014 05:07:44 for GRASS Programmer's Manual by
1.8.1.2