www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/24/06:52:42

Date: Mon, 24 Jun 1996 13:42:16 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: MCheu <matrix AT ionsys DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Help -- Reading PCX Header
In-Reply-To: <4ql5is$a37@maggie.ionsys.com>
Message-Id: <Pine.SUN.3.91.960624133910.3446C-100000@is>
Mime-Version: 1.0

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 -


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