Article View: comp.std.c
Article #275Re: size_t
From: Geoff Rimmer
Date: Wed, 21 Jun 1989 00:10
Date: Wed, 21 Jun 1989 00:10
30 lines
1630 bytes
1630 bytes
In article <845@cbnewsl.ATT.COM> dfp@cbnewsl.ATT.COM (david.f.prosser) writes: > 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>. Does this mean that size_t should be a #define rather than a typedef? If it were a typedef, and I #include <stdio.h> AND <stdlib.h> (which is a perfectly reasonable thing to do!), I would get errors. > Dave Prosser ...not an official X3J11 answer... /---------------------------------------------------------------\ | GEOFF RIMMER | | email : geoff@cs.warwick.ac.uk | | geoff@uk.ac.warwick.cs | | address : Computer Science Dept, Warwick University, | | Coventry, England. | | PHONE : +44 203 692320 | | FAX : +44 865 726753 | \---------------------------------------------------------------/ "First one I've had in twenty years and I won't be here to enjoy it." - Filthy, "Filthy Rich and Catflap" (best comedy series EVER)
Technical Details
Message-ID:
<GEOFF.89Jun21011005@onyx.cs.warwick.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!mcvax!ukc!warwick!diamond!geoffReferences:
<934@tukki.jyu.fi> <845@cbnewsl.ATT.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!mcvax!ukc!warwick!diamond!geoff From: geoff@cs.warwick.ac.uk (Geoff Rimmer) Newsgroups: comp.std.c Subject: Re: size_t Message-ID: <GEOFF.89Jun21011005@onyx.cs.warwick.ac.uk> Date: 21 Jun 89 00:10:05 GMT References: <934@tukki.jyu.fi> <845@cbnewsl.ATT.COM> Sender: news@warwick.ac.uk Organization: Computer Science, Warwick University, UK Lines: 31 In-reply-to: dfp@cbnewsl.ATT.COM's message of 19 Jun 89 21:20:32 GMT