On Fri, May 20, 2005 at 05:42:48PM +0100, Colin Paul Adams wrote: > The problem I'm finding with this, is getting back the returned string > characters. > I assume the void * returned is pointing to a Parrot String. > Certainly it's not a const char *.
Yes.
> There is a function declaration
> Parrot_string_cstring
>
> in string_funcs.h, but it appears to have no definitoon anywhere, so
> that's not much use to me.
Yeah, I bumped against that too. You need to look at the "strstart"
field in the ParrotString struct.
In Haskell I use:
peekCString =<< #{peek STRING, strstart} s5
Thanks,
/Autrijus/
pgpbLrF1rNwO3.pgp
Description: PGP signature
