Re: Re: [ZEND-ENGINE] cvs: Zend / zend_API.c zend_API.h

From: Date: Mon, 12 Mar 2001 16:15:58 +0000
Subject: Re: Re: [ZEND-ENGINE] cvs: Zend / zend_API.c zend_API.h
References: 1 2 3 4 5 6 7 8  Groups: php.dev 
Request: Send a blank email to php-dev+get-48744@lists.php.net to get a copy of this message
On Mon, 12 Mar 2001, Jason Greene wrote: > strlcpy, and strlcat are in the win32 build (main/strlcat.c main/strlcpy.c) > why dont you malloc a buffer that would fit the sprintf data, and then strlcpy > the size restriction? Hmm, and how would you know how big the sprintf buffer would need to be for an arbitrary format and arguments? :) In my case it's much simpler, so yes, I could do that, but otherwise.. That's why Glib has g_strdup_printf() function.. quite nice. -Andrei * If it ain't broken, it doesn't have enough features yet. *

« previous php.dev (#48744) next »