home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!doc.ic.ac.uk!uknet!acorn!ixi!clive
- From: clive@x.co.uk (Clive Feather)
- Newsgroups: comp.lang.c
- Subject: Re: Idle Questions about ANSI C
- Message-ID: <1992Nov18.125232.22873@x.co.uk>
- Date: 18 Nov 92 12:52:32 GMT
- References: <1992Nov13.213708.5456@mccc.edu> <BxqBp1.5M6@netnews.jhuapl.edu> <1992Nov17.123803.6400@thunder.mcrcim.mcgill.edu>
- Organization: IXI Limited, Cambridge, UK
- Lines: 38
-
- In article <1992Nov17.123803.6400@thunder.mcrcim.mcgill.edu> mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
- > Now: is it required that size_t be the same as one of the four usual
- > unsigned integral types? (How about ptrdiff_t?)
-
- Yes. The term "integral type" *has* [1] to be read as defined in 6.1.2.5.
- An integral type is:
-
- char
- a "signed integer type"
- an "unsigned integer type"
- an enumerated type
-
- a signed integer type is:
-
- signed char
- short int
- int
- long int
-
- an unsigned integer type is:
-
- unsigned char
- unsigned short int
- unsigned int
- unsigned long int
-
- size_t must be an unsigned integral type and ptrdiff_t a signed one. I
- don't think anything can be read into the use of "integer" in one place
- and "integral" in another.
-
- [1] It says so at the start of section 3 (ISO).
-
-
- --
- Clive D.W. Feather | IXI Limited | If you lie to the compiler,
- clive@x.co.uk | Vision Park | it will get its revenge.
- Phone: +44 223 236 555 | Cambridge CB4 4RZ | - Henry Spencer
- Fax: +44 223 236 550 | United Kingdom |
-