delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/10/12:01:55

From: "Smith A. Cat" <imbe AT primenet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why does sizeof give me...
Date: 6 Aug 1997 20:25:01 -0700
Organization: Blue Square Laboratories
Lines: 15
Message-ID: <33E475FE.77A4@primenet.com>
References: <33E957BE DOT 7216 AT geocities DOT com>
MIME-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

spiritseeker wrote:
> 
> Hello, hello!
> 
> I'm converting some code from my old 16 bit c programs to
> 32 bit .. suddenly sizeof gives me values that are many bytes
> larger than my old structures! 

well, yes. the default size of an int in DJGPP is 32 bits.  in a 16 bit
compiler it will certainly be 16 bits.  see the header file limits.h for
other surprises and wonders beyond your wildest fantasies...  oops,
that's the text of the spam i'm posting to alt.binaries.braille.

phil

- Raw text -


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