summaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-02-19 12:58:36 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-02-19 12:58:36 +0000
commit49138f1933e51d692dc3c7d91d95cb295ebac325 (patch)
tree41a23c1bdf3d3993bc563761c4453aec7e628e8c /tree.c
parentb37440047e8f1103fe7322e623369c025862d1cf (diff)
downloadlibxml2-49138f1933e51d692dc3c7d91d95cb295ebac325.tar.gz
some clarification in xmlDocDumpMemory() documentation fixed xmllint
* tree.c: some clarification in xmlDocDumpMemory() documentation * xmllint.c: fixed xmllint --stream --timing to get timings back Daniel
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tree.c b/tree.c
index 8b8eedb9..219f2d98 100644
--- a/tree.c
+++ b/tree.c
@@ -8386,8 +8386,10 @@ xmlDocDumpFormatMemoryEnc(xmlDocPtr out_doc, xmlChar **doc_txt_ptr,
* @mem: OUT: the memory pointer
* @size: OUT: the memory length
*
- * Dump an XML document in memory and return the #xmlChar * and it's size.
- * It's up to the caller to free the memory with xmlFree().
+ * Dump an XML document in memory and return the #xmlChar * and it's size
+ * in bytes. It's up to the caller to free the memory with xmlFree().
+ * The resulting byte array is zero terminated, though the last 0 is not
+ * included in the returned size.
*/
void
xmlDocDumpMemory(xmlDocPtr cur, xmlChar**mem, int *size) {