Date: Mon, 24 Jun 1996 13:42:16 +0200 (IST) From: Eli Zaretskii To: MCheu Cc: djgpp AT delorie DOT com Subject: Re: Help -- Reading PCX Header In-Reply-To: <4ql5is$a37@maggie.ionsys.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 24 Jun 1996, MCheu wrote: > Sorry to bother everyone with this, but I've been getting some wierd > numbers from the following programme. It's supposed to read the > header from a pcx file and tell me about it. The first 4 values from > the header come through ok (ID, version, encoding, bitdepth), but the First, int is 32 bit, not 16 bit, and second, GCC pads struct fields to prevent unaligned accesses. For more details, read the DJGPP FAQ (v2/faq200b.zip from the same place you get DJGPP), section 22.9.