Re: cvs: php4 /main SAPI.c

From: Date: Wed, 12 Feb 2003 00:43:12 +0000
Subject: Re: cvs: php4 /main SAPI.c
References: 1 2 3 4  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18704@lists.php.net to get a copy of this message
At 01:40 12.02.2003, Marcus Börger wrote:
At 00:17 12.02.2003, Stefan Esser wrote:
On Wed, Feb 12, 2003 at 08:13:49AM +0900, Moriyoshi Koizumi wrote:
some clarification here so I can find snprintf related bugs elsewhere.
As long as snprintf must not truncate it will return the number of written bytes (excluding '\0'). If sprintf must truncate it either returns -1 or (if it is C99 compatible) the number of bytes that would have been written if there would be enough space.
But we always have C99 compliant snprintf since we will use our own snprintf if the c-lib is not C99 compliant. We do so because we depend on some C99 specifications in out print functions - we found out in tests.
I meant this for *nix (e.g. everything that uses configure).

« previous php.cvs (#18704) next »