size_t

david.f.prosser dfp at cbnewsl.ATT.COM
Tue Jun 20 07:20:32 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?  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?  
>(If not, what is size_t good for, anyway?)
>-- 
>Tapani Tarvainen                 BitNet:    tarvainen at finjyu
>Internet:  tarvainen at jylk.jyu.fi  -- OR --  tarvaine at tukki.jyu.fi

Section 4.1.5 of the pANS:

	The types [defined in <stddef.h>] are ...

		size_t

	which is the unsigned integral type of the result of the sizeof
	operator ...

It is also defined in <stdio.h>, <stdlib.h>, <string.h> and <time.h>.

Dave Prosser	...not an official X3J11 answer...



More information about the Comp.std.c mailing list