//Little program to test if the CPU is little or big endian
#include <stdio.h>

int main() {
        union {
                char data[4];
                int ent;
        } donne;
        donne.ent=0x11223344;
        //If the second line is in disorder towards the first line, then it's more likely to be little endian (it can also be middle-endian,
        //but if it's then you should now it without having to run this program.)
        printf("%x\n%x%x%x%x\n"donne.entdonne.data[0], donne.data[1], donne.data[2], donne.data[3]);
}