Determining Byte-Order

John Cristy cristy at eplrx7.uucp
Fri Jul 20 04:59:35 AEST 1990


  I need an algorithm (in C) to determine the byte-order (LSB or MSB) of
  any computer with any word size.  I have one example but it depends on
  a word size of 4 bytes and does not work properly on the Cray.  Please
  send suggestions via Email to cristy at dupont.com.  Thanks muchly in 
  advance.
--
The UUCP Mailer



More information about the Comp.unix.questions mailing list