On Wed, 17 Jul 2002, Sisyphus wrote:

> The function '_msize' (malloc.h) enables one to get the size of an array
> that has been created with 'malloc' and altered with 'realloc'. Since
> 'Renew' is the xsub interface to 'realloc' I thought there might be some way
> of accessing the info from Inline. (Simply including malloc.h in inline
> scripts creates syntax errors, so '_msize' is out of the question. I tried
> using the '_msize' function without including malloc.h - which compiles and
> runs ok, but doesn't yield the correct answer.)

That must be OS specific.  My Linux malloc.h doesn't have that function:

  $ grep _msize /usr/include/malloc.h
  $

Also, Perl doesn't have to use malloc().  I may use its own implementation
depending on options chosen at compile-time.

-sam


Reply via email to