summaryrefslogtreecommitdiff
path: root/main/spprintf.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-06-23 22:12:22 +0000
committerMarcus Boerger <helly@php.net>2002-06-23 22:12:22 +0000
commit02ac908307d3e7abba1ee0f59ff3e52657c41f2c (patch)
tree9be6e89fbdd358fca442f9ac0c2eb88db0a78ed7 /main/spprintf.h
parentdb39a2efa73fc3c5dd09a2f9ee818f4cff016419 (diff)
downloadphp-git-02ac908307d3e7abba1ee0f59ff3e52657c41f2c.tar.gz
#some sentences about the functions
Diffstat (limited to 'main/spprintf.h')
-rw-r--r--main/spprintf.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/spprintf.h b/main/spprintf.h
index 1ba503d602..64ce28300d 100644
--- a/main/spprintf.h
+++ b/main/spprintf.h
@@ -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