little endian format or big endian format

how to device whether given process using little endian format or big
endian format?