From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: structures size Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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" 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/