in reply to Passing reference to perl from C code

You said you might pass a cahr *, or you might do something else, and you are afraid of running out of memory if you do something else. But you didn't say what something else might be.

In C, there is no way to pass a string by value. The only way to pass a string is by passing a pointer to its first character. So I do not know what you are worried about or what you think the problem will be.

  • Comment on Re: Passing reference to perl from C code