summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorMatthias Ulrich Neeracher <neeracher@mac.com>1998-01-31 07:32:42 +0100
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-06 16:42:53 +0000
commit9da1e3b5d1d609c7d834473bb3d3269a772dff38 (patch)
tree9a4416d2c5d2f3df30fc606d5a273def09434870 /sv.c
parent1acf53c5de4d6d234e2d70be90a7503dee9a9c3d (diff)
downloadperl-9da1e3b5d1d609c7d834473bb3d3269a772dff38.tar.gz
adding the newSVpvn API function
p4raw-id: //depot/perl@473
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index c6041de8bd..b0d81f3ef5 100644
--- a/sv.c
+++ b/sv.c
@@ -3444,6 +3444,21 @@ newSVpv(char *s, STRLEN len)
return sv;
}
+SV *
+newSVpvn(s,len)
+char *s;
+STRLEN len;
+{
+ register SV *sv;
+
+ new_SV(sv);
+ SvANY(sv) = 0;
+ SvREFCNT(sv) = 1;
+ SvFLAGS(sv) = 0;
+ sv_setpvn(sv,s,len);
+ return sv;
+}
+
#ifdef I_STDARG
SV *
newSVpvf(const char* pat, ...)