From: "Ghalos" Newsgroups: comp.os.msdos.djgpp Subject: Structure padding Date: Wed, 22 Dec 1999 20:32:15 -0000 Organization: Customer of Planet Online Lines: 28 Message-ID: <83rc56$ppp$1@news6.svr.pol.co.uk> NNTP-Posting-Host: modem-96.bromine.dialup.pol.co.uk X-Trace: news6.svr.pol.co.uk 945894374 26425 62.136.17.96 (22 Dec 1999 20:26:14 GMT) NNTP-Posting-Date: 22 Dec 1999 20:26:14 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I have a problem loading the header for an FLI file.... it should be 128 bytes like this: struct fli_file_header_s { int size; short magic; short frames; short width; short height; short depth; int flags; short speed; int next; int frit; char expand[100]; } 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?? Thanks, -- Ghalos - greg AT holdridge7 DOT freeserve DOT co DOT uk