]> granicus.if.org Git - php/commitdiff
#some sentences about the functions
authorMarcus Boerger <helly@php.net>
Sun, 23 Jun 2002 22:12:22 +0000 (22:12 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 23 Jun 2002 22:12:22 +0000 (22:12 +0000)
main/spprintf.h

index 1ba503d602bf764419d2660ec91a9e9d8ff79a23..64ce28300dd10090d9b1e2bae9e5317c254f376c 100644 (file)
    +----------------------------------------------------------------------+
  */
 
+/* 
+
+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