delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/22/21:29:17

Message-Id: <199912230050.SAA09721@lakdiva.slt.lk>
From: "Kalum Somaratna aka Grendel" <kalum AT newmail DOT net>
To: djgpp AT delorie DOT com
Date: Thu, 23 Dec 1999 06:51:41 +0600
MIME-Version: 1.0
Subject: Re: Structure padding
In-reply-to: <83rc56$ppp$1@news6.svr.pol.co.uk>
X-mailer: Pegasus Mail for Win32 (v3.12)
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 22 Dec 99, at 20:32, Ghalos wrote:

> I have a problem loading the header for an FLI file.... it should be 128
> bytes 
> Problem is.... DJGPP pads this out to take up 132 bytes! I guess this is to
> keep everything nicely aligned but I can't read it in from the file
> correctly if this happens... how can I stop it??


Greetings Ghalos,
Please have a look at sections 22.10 and 22.11 of the DJGPP FAQ 
 <http://www.delorie.com/djgpp/v2faq/> . In there you will find ways 
and means of dealing with your problem like using the 
__attribute__((packed)) extensions etc.

Hope This Helped,
Kalum.

- Raw text -


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