Article View: comp.os.msdos.programmer
Article #2859Re: Reversing Ints easily in TC++
From: Derek R. Foster
Date: Wed, 31 Oct 1990 03:47
Date: Wed, 31 Oct 1990 03:47
13 lines
1066 bytes
1066 bytes
In article <i6TmR3w163w@doppler> jdries%doppler@faatcrl (J. Francis Dries, III) writes: >I was hacking up a program to convert Sun Rasterfiles to GIF files when >I ran into a little problem. Almost all the non-Intel world (or so I'm >told) writes ints MSByte first, whereas Borland's TC++ is >reading/writing ints/longs (I need longs, since I'm working with 32bit >ints from the Sun) LSByte first. > >My Question is, is there a way to reverse the order, quickly or cleanly? In the case of ints, look up the "swab" function. I don't know about longs, though. Derek Riippa Foster
Technical Details
Message-ID:
<9448@jarthur.Claremont.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!dfosterReferences:
<i6TmR3w163w@doppler> <1990Oct26.153349.23581@maytag.waterloo.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!dfoster From: dfoster@jarthur.Claremont.EDU (Derek R. Foster) Newsgroups: comp.os.msdos.programmer Subject: Re: Reversing Ints easily in TC++ Keywords: Int, Intel, Motorola Message-ID: <9448@jarthur.Claremont.EDU> Date: 31 Oct 90 03:47:19 GMT References: <i6TmR3w163w@doppler> <1990Oct26.153349.23581@maytag.waterloo.edu> Organization: Harvey Mudd College, Claremont, CA 91711 Lines: 13