Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Passing a very large string by reference to a c libraryby jeroenes (Priest) |
on Jul 12, 2001 at 16:49 UTC ( [id://96012]=note: print w/replies, xml ) | Need Help?? |
Here you have a snippet:
You see, the c uses pointers to address the strings. Char is the default type, you need to convert inside the code. From perl, I call: Where the $py and $pw are strings. XS automagically builds the pointers for you. Hope this helps, Jeroen The perl process didn't exceed 55M...
In Section
Seekers of Perl Wisdom
|
|