Date: Thu, 14 Aug 1997 11:39:21 +0300 (IDT) From: Eli Zaretskii To: Chris Croughton cc: max AT alcyone DOT com, djgpp AT delorie DOT com Subject: Re: Why does sizeof give me... In-Reply-To: <97Aug13.151644gmt+0100.17061@internet01.amc.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.