Article View: comp.std.c
Article #252Re: size_t
From: david.f.prosser
Date: Mon, 19 Jun 1989 21:20
Date: Mon, 19 Jun 1989 21:20
21 lines
1086 bytes
1086 bytes
In article <934@tukki.jyu.fi> tarvaine@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@finjyu >Internet: tarvainen@jylk.jyu.fi -- OR -- tarvaine@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...
Technical Details
Message-ID:
<845@cbnewsl.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!cbnewsl!dfpReferences:
<934@tukki.jyu.fi>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!cbnewsl!dfp From: dfp@cbnewsl.ATT.COM (david.f.prosser) Newsgroups: comp.std.c Subject: Re: size_t Message-ID: <845@cbnewsl.ATT.COM> Date: 19 Jun 89 21:20:32 GMT References: <934@tukki.jyu.fi> Reply-To: dfp@cbnewsl.ATT.COM (david.f.prosser) Organization: AT&T Bell Laboratories Lines: 21