--- embedaddon/php/main/spprintf.h 2012/02/21 23:48:05 1.1.1.1 +++ embedaddon/php/main/spprintf.h 2013/10/14 08:02:43 1.1.1.4 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2012 The PHP Group | + | Copyright (c) 1997-2013 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -16,13 +16,13 @@ +----------------------------------------------------------------------+ */ -/* $Id: spprintf.h,v 1.1.1.1 2012/02/21 23:48:05 misho Exp $ */ +/* $Id: spprintf.h,v 1.1.1.4 2013/10/14 08:02:43 misho Exp $ */ /* The pbuf parameter of all spprintf version receives a pointer to the allocated buffer. This buffer must be freed manually after usage using efree() function. -The buffer will allways be terminated by a zero character. When pbuf is NULL +The buffer will always be terminated by a zero character. When pbuf is NULL the function can be used to calculate the required size of the buffer but for that purpose snprintf is faster. When both pbuf and the return value are 0 than you are out of memory.