Hello everybody,

I am in a rabbit hole (don't ask!), and I need to drag some other people with me.

What is the consensus about the most portable way to detect the endianness of a machine/platform?  (Ok, we can assume that while running on an ARM the endianness is "fixed" by the OS)

All the best

MA

--
Marco Antoniotti, Professor                  tel. +39 - 02 64 48 79 01
DISCo, Università Milano Bicocca U14 2043    http://dcb.disco.unimib.it
Viale Sarca 336
I-20126 Milan (MI) ITALY