Mail Archives: djgpp/1997/08/14/04:41:30
On Wed, 13 Aug 1997, Chris Croughton wrote:
> The only portable way is to do it yourself - either by breaking longer
> variables up into chars or in ASCII. Especially since you can't rely
> on any byte ordering scheme (I gather there are some machines where a
> long is held in memory as bytes 2, 1, 4 and 3 or something similar, not
> even a reversible format).
>
> Isn't this all in the FAQ? Or was it one of the other C newsgroup FAQs?
This is a pure C issue, so it isn't in the DJGPP FAQ. I believe the C
FAQ (from comp.lang.c) discusses this at some length.
- Raw text -