in reply to Re: Re: Pointer to null terminated string
in thread Pointer to null terminated string


If the function returns a 4 byte pointer then you should be able to do this:
$str = unpack "p", some_func();

If the function returns a pointer to a, known length, packed structure you can do this (where 32 is used as an example):

$struct = unpack "P32", some_func();

You will then probably need to unpack the structure to get at the members.

Referring to the particular XS API or source should tell you what is being returned.

--
John.