delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/14/04:41:30

Date: Thu, 14 Aug 1997 11:39:21 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Chris Croughton <crough45 AT amc DOT de>
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: <Pine.SUN.3.91.970814113901.6734F-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019