Files
obitools3/src/obilittlebigman.c

26 lines
638 B
C
Raw Permalink Normal View History

/****************************************************************************
* Code for endianness checking *
****************************************************************************/
/**
* @file obilittlebigman.c
* @author Eric Coissac (eric.coissac@metabarcoding.org)
* @date 23 May 2015
* @brief Code endianness checking.
*/
#include "obilittlebigman.h"
2015-06-10 15:19:02 +02:00
// TODO this function does not seem to work properly
2015-06-10 15:19:02 +02:00
bool obi_is_little_endian() {
union { int entier;
char caractere[4] ;
} test;
test.entier=0x01020304;
return (test.caractere[3] == 1);
}