Message-Id: <199912230050.SAA09721@lakdiva.slt.lk> From: "Kalum Somaratna aka Grendel" To: djgpp AT delorie DOT com Date: Thu, 23 Dec 1999 06:51:41 +0600 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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 Precedence: bulk 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 . In there you will find ways and means of dealing with your problem like using the __attribute__((packed)) extensions etc. Hope This Helped, Kalum.