From: Richard Soderberg Date: Tue, 4 Sep 2001 15:16:47 +0000 (-0700) Subject: Re: sv_catpvfn and sv_setpvfn X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=328bf3738a02f1c1bfa010034ca56aee254f8a25;p=p5sagit%2Fp5-mst-13.2.git Re: sv_catpvfn and sv_setpvfn Message-Id: <200109042216.PAA17858@oregonnet.com> p4raw-id: //depot/perl@11876 --- diff --git a/pod/perlclib.pod b/pod/perlclib.pod index f80a714..80e6194 100644 --- a/pod/perlclib.pod +++ b/pod/perlclib.pod @@ -127,7 +127,7 @@ instead of raw C strings: strncat(dt, src) sv_catpvn(sv, s) sprintf(s, fmt, ...) sv_setpvf(sv, fmt, ...) -Note also the existence of C and C, combining +Note also the existence of C and C, combining concatenation with formatting. =head2 Character Class Tests diff --git a/pod/perlguts.pod b/pod/perlguts.pod index 8b11653..88ca803 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -54,7 +54,7 @@ To change the value of an *already-existing* SV, there are seven routines: void sv_setpv(SV*, const char*); void sv_setpvn(SV*, const char*, int) void sv_setpvf(SV*, const char*, ...); - void sv_setpvfn(SV*, const char*, STRLEN, va_list *, SV **, I32, bool); + void sv_vsetpvfn(SV*, const char*, STRLEN, va_list *, SV **, I32, bool); void sv_setsv(SV*, SV*); Notice that you can choose to specify the length of the string to be @@ -67,7 +67,7 @@ string terminating with a NUL character. The arguments of C are processed like C, and the formatted output becomes the value. -C is an analogue of C, but it allows you to specify +C is an analogue of C, but it allows you to specify either a pointer to a variable argument list or the address and length of an array of SVs. The last argument points to a boolean; on return, if that boolean is true, then locale-specific information has been used to format @@ -162,7 +162,7 @@ you can use the following functions: void sv_catpv(SV*, const char*); void sv_catpvn(SV*, const char*, STRLEN); void sv_catpvf(SV*, const char*, ...); - void sv_catpvfn(SV*, const char*, STRLEN, va_list *, SV **, I32, bool); + void sv_vcatpvfn(SV*, const char*, STRLEN, va_list *, SV **, I32, bool); void sv_catsv(SV*, SV*); The first function calculates the length of the string to be appended by