Date: Fri, 29 Jul 94 15:59:06 EDT From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: help with reading floats from file Reply-To: babcock AT cfa DOT harvard DOT edu > The order of bytes is different for a Sun than Intel x86. Also, > I don't even know if the floating point format is the same. However, you > can try to reorder the bytes after you read them in. Here's something to > try after they're read in (just reverse the order of each 32bit word): djgpp includes functions htonl and htons for inverting byte order.