DCMTK  Version 3.6.1 20131114
OFFIS DICOM Toolkit
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Functions
String Allocation/Free functions
+ Collaboration diagram for String Allocation/Free functions:

Functions

XMLDLLENTRY XMLSTR stringDup (XMLCSTR source, int cbData=-1)
 Duplicate (copy in a new allocated buffer) the source string. More...
 
XMLDLLENTRY void freeXMLString (XMLSTR t)
 to free the string allocated inside the "stringDup" function or the "createXMLString" function.
 

Detailed Description

Function Documentation

XMLDLLENTRY XMLSTR stringDup ( XMLCSTR  source,
int  cbData = -1 
)

Duplicate (copy in a new allocated buffer) the source string.

This is a very handy function when used with all the "XMLNode::*_WOSD" functions (xmlWOSD).

Parameters
cbDataIf !=0 then cbData is the number of chars to duplicate. New strings allocated with this function should be free'd using the "freeXMLString" function.


Generated on Tue Nov 26 2013 for DCMTK Version 3.6.1 20131114 by Doxygen 1.8.5