From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,2b585bfb397fe81e X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-08-20 10:59:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!wn13feed!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc02.POSTED!not-for-mail From: Jerry Feldman Newsgroups: comp.unix.tru64 Subject: Re: how to determine the size of dynamic array?? Message-ID: <20030820135930.037dc481.gaf-noSPAM@blu.org> References: <6_sYa.1689$K_4.849@news.cpqcorp.net> Organization: Boston Linux and Unix X-Newsreader: Sylpheed version 0.9.4claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.34.95.253 X-Complaints-To: abuse@comcast.net X-Trace: sccrnsc02 1061402370 24.34.95.253 (Wed, 20 Aug 2003 17:59:30 GMT) NNTP-Posting-Date: Wed, 20 Aug 2003 17:59:30 GMT Date: Wed, 20 Aug 2003 17:59:30 GMT Xref: archiver1.google.com comp.unix.tru64:10712 On Fri, 08 Aug 2003 14:00:50 GMT "Ed Vogel" wrote: > I do not know of a way to find the size of the malloc'ed storage. Common Ed, sure you do. Just look into the malloc header. Rather non-portable, but it works. -- Jerry Feldman Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9