www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/15/01:45:00

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Fri, 15 Feb 2002 08:41:35 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Alvin Lau" <alvin_lau AT yahoo DOT com>
Message-Id: <4098-Fri15Feb2002084134+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <a4i5k8$j4d51@imsp212.netvigator.com> (alvin_lau@yahoo.com)
Subject: Re: Structure size problem
References: <a4i5k8$j4d51 AT imsp212 DOT netvigator DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Alvin Lau" <alvin_lau AT yahoo DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 15 Feb 2002 13:27:31 +0800
> 
> Obviously there have a problem about the structure size in KFNAME2, this
> structure has three members (Index,KFType,KFName). According the output of
> this program, the size of Index is 4, KFType is 1, KFName is 30. Then 4+1+30
> should be 35, but the total size of KFNAME2 is 36. So, I want to ask some
> questions:
> Is this a bug in DJGPP ?

No, it's a bug in your computation of the struct size.  See section
22.11 of the DJGPP FAQ list for more information.

> How to solve this problem ?

It's not a problem, so it doesn't need to be solved.

- Raw text -


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