Xref: utzoo comp.lang.c++:13277 comp.lang.c:39053 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!sun-barr!apple!turk From: turk@Apple.COM (Ken Turkowski) Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: 64 bit architectures and C/C++ Message-ID: <13358@goofy.Apple.COM> Date: 6 May 91 18:35:09 GMT References: <1991May03.120455.158@buster.stafford.tx.us> <1991May5.175809.2755@ccad.uiowa.edu> Organization: Advanced Technology Graphics, Apple Computer, Cupertino, CA, USA Lines: 14 cadsi@ccad.uiowa.edu (CADSI) writes: >The big/little endian problem is handled via swab calls. >AND, how do we know when to do this???? We just store >the needed info in a header record. >This header is read in block fashion and typedef'ed to the structure we need. What type of header do you suggest? This should be able to record the ordering of shorts, longs, floats, and doubles, and might need to specify floating-point format. -- Ken Turkowski @ Apple Computer, Inc., Cupertino, CA Internet: turk@apple.com Applelink: TURK UUCP: sun!apple!turk