www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/31/08:07:30

Date: Fri, 31 Dec 1999 01:04:19 +0100 (CET)
From: Wilmer van der Gaast <lintux AT dds DOT nl>
To: djgpp AT delorie DOT com
Subject: Re: Structure padding
In-Reply-To: <846v45$aqj@journal.concentric.net>
Message-ID: <Pine.LNX.4.10.9912310102450.5454-100000@server.minilinux.org>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 27 Dec 1999, Technophile wrote:

> That's because it differs from machine to machine, depending on the
> compiler....  Use sizeof() in a little demo program to find out the sizes
> are for your box.  For instance, something similar to the following will
> give you the values (in total bytes) of each type.
> 
> Ghalos <greg AT holdridge7 DOT freeserve DOT co DOT uk> wrote
> > really? Wotsit's Format gave me four bytes as the value...
> >
> > --
> > Ghalos - greg AT holdridge7 DOT freeserve DOT co DOT uk
> > Wilmer van der Gaast wrote in message ...
> > >On Wed, 22 Dec 1999, Ghalos wrote:
> > >
> > >>    int  flags;
> > >     ^^^
> > >Btw. According to the FLI-specs in PCGPE this one should be two bytes,
> > >not four.

I know, maybe it might have been better when I wrote that it must be two
bytes, not four. That's what I really meant.

---------

Wilmer van der Gaast (lintux AT dds DOT nl)
ICQ 55707076

- Raw text -


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