Article View: comp.std.c
Article #254Re: size_t
From: Karl Heuer
Date: Mon, 19 Jun 1989 23:28
Date: Mon, 19 Jun 1989 23:28
13 lines
938 bytes
938 bytes
In article <934@tukki.jyu.fi> tarvaine@tukki.jyu.fi (Tapani Tarvainen) writes: >What exactly does pANS say about size_t? It says (among other things) that |size_t| is big enough to hold the size of the largest declarable object. >In Turbo C 2.0 it is defined as unsigned int in all memory models, yet in >huge model array indices are long. Is this a bug? Yes. In huge model, |size_t| should be |unsigned long int|, and |ptrdiff_t| should be |long int|. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint
Technical Details
Message-ID:
<13758@haddock.ima.isc.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!ico!ism780c!haddock!karlReferences:
<934@tukki.jyu.fi>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!ico!ism780c!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.std.c Subject: Re: size_t Message-ID: <13758@haddock.ima.isc.com> Date: 19 Jun 89 23:28:06 GMT References: <934@tukki.jyu.fi> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 13