Mail Archives: djgpp/1996/06/24/06:52:42
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.
- Raw text -