Path: utzoo!attcan!uunet!cs.utexas.edu!samsung!rex!uflorida!mephisto!udel!eplrx7!cristy From: cristy@eplrx7.uucp (John Cristy) Newsgroups: comp.unix.questions Subject: Determining Byte-Order Message-ID: <1990Jul19.185935.7060@eplrx7.uucp> Date: 19 Jul 90 18:59:35 GMT Sender: usenet@ee.udel.EDU Organization: Internet Lines: 8 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@dupont.com. Thanks muchly in advance. -- The UUCP Mailer