Re: cvs: php4 /main SAPI.c
| From: | Moriyoshi Koizumi | Date: | Mon, 10 Feb 2003 20:40:19 +0000 |
| Subject: | Re: cvs: php4 /main SAPI.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-18628@lists.php.net to get a copy of this message | ||
marcus.boerger@t-online.de (Marcus Börger) wrote:
> Why not use spprintf before you make it even more complex?
> Something like this:
>
> if(!strstr(lower_temp,"realm")) {
> efree(result);
> spprintf(&result, 0, "%s realm=\"%ld\"",ptr, myuid);
> }
Because spprintf is just considerably s..l..o..w...
I always prefer to avoid using that function as long as I can reasonably
estimate the length of result in advance.
Moriyoshi