-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- From `perldoc perlapi`:
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* s, STRLEN len)
newSVpvn Creates a new SV and copies a string into it. The reference count
for the SV is set to 1. Note that if "len" is zero, Perl will
create a zero length string. You are responsible for ensuring
that
the source string is at least "len" bytes long. If the "s"
argument is NULL the new SV will be undefined.
SV* newSVpvn(const char* s, STRLEN len)
I know that in our code, we always use newSVpvn. But I'm not sure I can
explain
why.
- --
Stephen Clouse <[EMAIL PROTECTED]>
Senior Programmer/DBE, Core Technology Developer
The IQ Group, Inc. <http://www.theiqgroup.com/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFCp1vyy3uolkRT3A0RAhrkAJ91mk/+T8d1uGvBTOp6g96V7ZC1uACfeX2m
QhbRYlwaGEAmZDlyObhZUqE=
=Asln
-----END PGP SIGNATURE-----
_______________________________________________
kc mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/kc