At 04:41 AM 9/17/2001 -0700, Benjamin Stuhl wrote:
>--- Simon Cozens <[EMAIL PROTECTED]> wrote:
> > On Mon, Sep 17, 2001 at 09:33:56AM +0100, Tom Hughes
> > wrote:
> > > The attached patch adds string_nprintf, the last
> > unimplemented
> > > function listed in strings.pod as far as I can see.
> >
> > Thanks; but I think I'm going to wait for the portability
> > police to
> > comment. There's every likelihood we want to write out
> > own sprintf-like
> > function.
>
>I'm quite sure we will. There are so many unportabilities
>in *printf (like, what's the format for an IV? an NV?), as
>well lots of potential buffer overruns (not all platforms
>have vsnprintf). And besides, we may not want a vsnprintf -
>we may want something that autogrows the string. Take a
>look at sv_vcatpvf in perl5's sv.c for inspiration.

Dead on. Anyone care to yank the code out of the perl5 source and weld it in?

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to