#include <sys/types.h>#include <sys/param.h>Go to the source code of this file.
Defines | |
| #define | endian_test() (*(char*)&_endian_test_int==1) |
| #define | is_big_endian() (!endian_test()) |
| #define | is_little_endian() endian_test() |
Functions | |
| int | endianness_sanity_check () |
Variables | |
| int | _endian_test_int |
|
|
Definition at line 72 of file endianness.h. |
|
|
Definition at line 73 of file endianness.h. Referenced by endianness_sanity_check(). |
|
|
Definition at line 74 of file endianness.h. Referenced by endianness_sanity_check(), and main(). |
|
|
Definition at line 34 of file endianness.c. References is_big_endian, and is_little_endian. Referenced by main(). |
|
|
Definition at line 28 of file endianness.c. |
1.3.9.1