Return to test-betoh64.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
1.1.2.1 ! schwarze 1: #include <sys/types.h> ! 2: ! 3: #if defined(__linux__) ! 4: # include <endian.h> ! 5: #elif defined(__APPLE__) ! 6: # include <libkern/OSByteOrder.h> ! 7: #endif ! 8: ! 9: int ! 10: main(int argc, char **argv) ! 11: { ! 12: u_int64_t hostorder; ! 13: u_int64_t bigendian = 1; ! 14: hostorder = betoh64(bigendian); ! 15: return 0; ! 16: }