home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / std / c / 2618 < prev    next >
Encoding:
Text File  |  1992-09-13  |  992 b   |  25 lines

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