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" Sender: halo1 AT zahav DOT net DOT il To: "Alvin Lau" 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: (alvin_lau@yahoo.com) Subject: Re: Structure size problem References: 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 Precedence: bulk > From: "Alvin Lau" > 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.