diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-04-04 01:59:26 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-04-04 01:59:26 +0000 |
commit | 79cb57f6e01f91d8fff40d69caa187aaa669671b (patch) | |
tree | eabaee443cecc2e9ff909a291c140663c1fd4954 /pod | |
parent | 053fc87424630413980be29cbecbb76f658c5d74 (diff) | |
download | perl-79cb57f6e01f91d8fff40d69caa187aaa669671b.tar.gz |
correct places that said newSVpv() when they meant newSVpvn()
p4raw-id: //depot/perl@3217
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlguts.pod | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod index c5289a1d86..b71337c137 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -2286,7 +2286,8 @@ SV is set to 1. =item newSVpv Creates a new SV and copies a string into it. The reference count for the -SV is set to 1. If C<len> is zero then Perl will compute the length. +SV is set to 1. If C<len> is zero, Perl will compute the length using +strlen(). For efficiency, consider using C<newSVpvn> instead. SV* newSVpv (const char* s, STRLEN len) @@ -2295,13 +2296,14 @@ SV is set to 1. If C<len> is zero then Perl will compute the length. Creates a new SV an initialize it with the string formatted like C<sprintf>. - SV* newSVpvf(const char* pat, ...); + SV* newSVpvf(const char* pat, ...) =item newSVpvn Creates a new SV and copies a string into it. The reference count for the -SV is set to 1. If C<len> is zero then Perl will create a zero length -string. +SV is set to 1. Note that if C<len> is zero, Perl will create a zero length +string. You are responsible for ensuring that the source string is at least +C<len> bytes long. SV* newSVpvn (const char* s, STRLEN len) |