From: gallatin@davinci.isds.duke.edu (Andrew Gallatin)
Subject: Re: Endian problems...
Date: 1995/11/13 [thread overview]
Message-ID: <488172$j3p@news.duke.edu> (raw)
In-Reply-To: 1995Nov13.114607.45664@yogi.urz.unibas.ch
In article <1995Nov13.114607.45664@yogi.urz.unibas.ch>,
Lukas Rosenthaler <rosenth@foto.chemie.unibas.ch> wrote:
>Then You have been lucky - under normal circumstances this will not work.
>That's because swapping of a 4 byte value (int) and of a 2 byte value (short)
>is different. If You have binary files with mixed data, let's say
>doubles, floats, ints, shorts and strings, then every item has to be swapped
>appropriately!
The original poster said:
I want to *read* a IEEE floating point file and *write* a dec-native unformatted
So I assumed that the file was all floats. I probably should have
included your warning in case that wasn't true...
Drew
##############################################################################
# Andrew Gallatin, Computer Project Manager #
# Institute of Statistics and Decision Sciences #
# Box 90251, Duke University, Durham, NC 27708-0251 #
##############################################################################
next prev parent reply other threads:[~1995-11-13 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-07 5:00 Endian problems decroix
1995-11-08 5:00 ` Andrew Gallatin
1995-11-13 5:00 ` Lukas Rosenthaler
1995-11-13 5:00 ` Andrew Gallatin [this message]
1995-11-09 5:00 ` Steve Lionel
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox