delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/05/15:14:23

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: structures size
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <ae86hsouq6pobsl8ssjeqtm7sccmh9639n@4ax.com>
References: <TCVP4.3574$724 DOT 7298116 AT nnrp5 DOT proxad DOT net>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 18
X-Trace: /wLwTaNrs9pNXoYKC5gEo1sP77zGR07QrJkEbpjO0yk5bQHo46sjwkdiHfRNVJr3R1HJrjpqikKX!6R2YXnc+MtvZpfOJ2gmxXp4pdOpee8xTQeZND4p//nUPIly3BIxI3qGODhRptLMkp63/WNiMQRMW!dEyvg/0=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Fri, 05 May 2000 19:38:22 GMT
Distribution: world
Date: Fri, 05 May 2000 19:38:23 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Wed, 03 May 2000 13:14:27 GMT, "Alexandre Devaure"
<Alexandre DOT Devaure AT leroy-autom DOT com> wrote:

>I'd like the size of my structures is the same that in Borland C
>because my program need to read a structure in flash written by a
>program developed under Borland C.

Tip 1: Change all "int" to "short" and try from there.
Tip 2: Use __attribute__((packed))
  http://www.delorie.com/djgpp/v2faq/faq22_11.html

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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