From: Chris Holmes Newsgroups: comp.os.msdos.djgpp Subject: Re: EUREKA... note about pcx header Date: Fri, 13 Aug 1999 00:49:16 -0400 Organization: Georgia Institute of Technology, Atlanta GA, USA Lines: 17 Message-ID: <37B3A3CC.784C@surfsouth.com> References: <8D53104ECD0CD211AF4000A0C9D60AE301571AFB AT probe-2 DOT acclaim-euro DOT net> NNTP-Posting-Host: r33h43.res.gatech.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news-int.gatech.edu 934519956 24848 128.61.33.43 (13 Aug 1999 04:52:36 GMT) X-Complaints-To: usenet AT news DOT gatech DOT edu NNTP-Posting-Date: 13 Aug 1999 04:52:36 GMT X-Mailer: Mozilla 3.04Gold (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Shawn Hargreaves wrote: > > sephiroth writes: > > I always get by this problem by specifically defining a short or a > > long. I think this is good practice. > > The size of a short or long isn't any more specific than the > size of an int: these can vary depending on your compiler and > the type of machine you are working with. It is never correct > to make any assumptions about the size of data types, which Pardon? Once the code is compiled, the size of everything is fixed in the machine code and if your compiler made ints 4 bytes, then that size will stay fixed from processor to processor. Chris