On Wednesday 30 Jun 2010 10:01:45 Yang Zhou wrote:
> Hi Shlomi,
> 
> Thanks for your help.
> 
> I tried the "my $buffer = "\0" x 65536; " method, but "segmentation fault"
> in the C function remains.
> I know little about "XS", it seems a declaration of the interface between
> Perl and C? Just a glimps of the link in your last mail, I can't find any
> Keyword which can be used to solve this problem.
> 

You need to allocate a buffer for that in your C code using malloc() pass it 
to the function and then convert it to something that Perl can understand.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Freecell Solver - http://fc-solve.berlios.de/

God considered inflicting XSLT as the tenth plague of Egypt, but then
decided against it because he thought it would be too evil.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to