cvs: php4 /main spprintf.h

From: Date: Sun, 23 Jun 2002 22:12:22 +0000
Subject: cvs: php4 /main spprintf.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12471@lists.php.net to get a copy of this message
helly Sun Jun 23 18:12:22 2002 EDT Modified files: /php4/main spprintf.h Log: #some sentences about the functions Index: php4/main/spprintf.h diff -u php4/main/spprintf.h:1.3 php4/main/spprintf.h:1.4 --- php4/main/spprintf.h:1.3 Sun May 19 21:32:48 2002 +++ php4/main/spprintf.h Sun Jun 23 18:12:22 2002 @@ -16,6 +16,19 @@ +----------------------------------------------------------------------+ */ +/* + +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 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. + +There is also snprintf: See difference explained in snprintf.h + +*/ + #ifndef SPPRINTF_H #define SPPRINTF_H

« previous php.cvs (#12471) next »