home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12547 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  779 b 

  1. From: walterm@hpwrce.mayfield.hp.com (Walter Murray)
  2. Date: Wed, 19 Aug 1992 16:24:08 GMT
  3. Subject: Re: How many malloc's can I use?
  4. Message-ID: <580016@hpwrce.mayfield.hp.com>
  5. Organization: the HP Mtn.View Resp. Cntr.
  6. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!sdd.hp.com!hpscdc!hplextra!hpcc05!hpwrce!walterm
  7. Newsgroups: comp.lang.c
  8. References: <1992Aug17.181615.11905@proxxi.se>
  9. Lines: 11
  10.  
  11. In comp.lang.c, elias@proxxi.se (Elias M}rtensson (proxxi)) writes:
  12.  
  13. > And does ANSI C specify that largest block of memory that can be
  14. > malloc'ed?
  15.  
  16. For maximally portable code, I would avoid requesting more than
  17. 32767 bytes in a call to malloc, because that is the maximum size
  18. of an object in a strictly conforming program.  (ANSI 2.2.4.1, 1.7)
  19.  
  20. Walter Murray
  21. -------------
  22.