Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!garnet.berkeley.edu!andy From: andy@garnet.berkeley.edu (Andy Lieberman) Newsgroups: comp.unix.questions Subject: malloc question Message-ID: <25424@agate.BERKELEY.EDU> Date: 12 Jun 89 23:15:17 GMT Sender: usenet@agate.BERKELEY.EDU Reply-To: andy@garnet.berkeley.edu (Andy Lieberman) Organization: University of California, Berkeley Lines: 11 I want to write a function that will return the size of a memory block that was allocated with malloc. How can I determine this knowing only the pointer to the start of the block? (I know I could keep track myself, but I don't see why I should have to.) I'm using SUNOS 3.5. Please reply by e-mail and I will post a summary. Thanks, Andy Lieberman andy@library.Berkeley.EDU