diff options
author | Matthias Ulrich Neeracher <neeracher@mac.com> | 1998-01-31 07:32:42 +0100 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1998-02-06 16:42:53 +0000 |
commit | 9da1e3b5d1d609c7d834473bb3d3269a772dff38 (patch) | |
tree | 9a4416d2c5d2f3df30fc606d5a273def09434870 /sv.c | |
parent | 1acf53c5de4d6d234e2d70be90a7503dee9a9c3d (diff) | |
download | perl-9da1e3b5d1d609c7d834473bb3d3269a772dff38.tar.gz |
adding the newSVpvn API function
p4raw-id: //depot/perl@473
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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, ...) |