Re: Re: cvs: pecl /newt newt.c

From: Date: Mon, 16 Aug 2004 16:00:10 +0000
Subject: Re: Re: cvs: pecl /newt newt.c
References: 1 2 3 4 5 6  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1177@lists.php.net to get a copy of this message
On Mon, Aug 16, 2004 at 04:44:54PM +0100, Swithun Crowe wrote: > Hello > > > Unfortunately, construction of va_list is not a portable thing ... I'm a > > bit afraid of using this technique :) > > > > I've attached a simple C program which emulates sprintf using a format > string and the argv from main. It avoids the need for va_list. > > argv in main is like the array you get from zend_get_parameters_array_ex. > It depends how sophisticated you want the formatting to be, I suppose. > I wanted this function to behave exactly in the same way as sprintf() function of PHP behaves with accepted arguments. I thought (and think) it's better to call to internal function there, instead of re-implementing sprintf() by myself, especially since very high speed is not crucial in this place. -- Best regards, Michael

« previous php.pecl.dev (#1177) next »