[BACK]Return to test-betoh64.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/test-betoh64.c, Revision 1.1.2.1

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: }

CVSweb