Path: 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 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