home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c
- Path: sparky!uunet!uunet.ca!canrem!telly!druid!darcy
- From: darcy@druid.uucp (D'Arcy J.M. Cain)
- Subject: Re: calloc()
- Message-ID: <1992Sep13.142340.24107@druid.uucp>
- Date: Sun, 13 Sep 1992 14:23:40 GMT
- References: <14455@goanna.cs.rmit.oz.au> <1992Sep10.180542.1009@taumet.com>
- Organization: D'Arcy Cain Consulting
- Lines: 14
-
- steve@taumet.com (Steve Clamage) writes:
- >That said, suppose we have a system where int and size_t are 16 bits,
- >but it is possible to allocate an object bigger than 64K. A
-
- But isn't size_t guaranteed to be big enough to specify any object? It
- is stated in a kind of roundabout way in the standard (you have to follow
- up sizeof) but I don't think there is any doubt that if an object can be
- larger than 64K then size_t must reflect this.
-
- --
- D'Arcy J.M. Cain (darcy@druid.com) |
- D'Arcy Cain Consulting | There's no government
- Toronto, Ontario, Canada | like no government!
- +1 416 424 2871 DoD#0082 |
-