size_t

Karl Heuer karl at haddock.ima.isc.com
Tue Jun 20 09:28:06 AEST 1989


In article <934 at tukki.jyu.fi> tarvaine at 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 at haddock.isc.com), The Walking Lint



More information about the Comp.std.c mailing list