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