This creates a Perl scalar value from C string.newSVpv Creates a new SV and copies a string into it. The reference count for the SV is set to 1. If "len" is zero, Perl will compute the length using strlen(). For efficiency, consider using "newSVpvn" instead.
SV* newSVpv(const char *const s, const STRLEN len)
In reply to Re: Perl Strings != C strings?
by aitap
in thread Perl Strings != C strings?
by Mr. Newb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |