Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: SvPV Segmentation Fault

by Khen1950fx (Canon)
on Apr 25, 2012 at 22:35 UTC ( #967196=note: print w/replies, xml ) Need Help??


in reply to SvPV Segmentation Fault

I tried it, keeping it simple---no segmentation fault.
#!/usr/bin/perl -l use strict; use warnings; use Inline C => <<'END_C'; void foo( SV *sv ) { if( sv ) { printf( "%s\n", SvPV_nolen( sv ) ); return; } } void bar( SV *sv ) { printf( "%i\n", SvPOK( sv ) ); } END_C foo('asdf'); foo(1); bar(0);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://967196]
help
Chatterbox?
vrk gets a tall glass of milk to dunk cookies.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-05-30 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?