www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/29/04:08:44

Xref: news2.mv.net comp.os.msdos.djgpp:3235
From: Shawn Hargreaves <slh100 AT york DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: sizeof(int) == 4?!
Date: Sun, 28 Apr 1996 19:07:36 +0100
Organization: The University of York, UK
Lines: 16
Message-ID: <Pine.SGI.3.93.960428190558.28732A-100000@tower.york.ac.uk>
References: <4m03nd$nsc AT freenet-news DOT carleton DOT ca>
NNTP-Posting-Host: tower.york.ac.uk
Mime-Version: 1.0
To: Nicholas Lynch <br516 AT FreeNet DOT Carleton DOT CA>
In-Reply-To: <4m03nd$nsc@freenet-news.carleton.ca>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 28 Apr 1996, Nicholas Lynch wrote:

>   Variable         Size
>   int              4
> 
>  Is there any way of correcting this? (I belive that this problem

DJGPP is a 32 bit compiler, therefore sizeof(int) = 4.

Try short if you want a 16 bit value.


Shawn Hargreaves.  Why is 'phonetic' spelt with a ph?  Check out Allegro
and FED on http://www.york.ac.uk/~slh100/


- Raw text -


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