IncredibleXMLParser  3.05
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
String Allocation/Free functions

Functions

XMLDLLENTRY IXMLStr IXMLStringDup (IXMLCStr source, int cbData=-1)
 Duplicate (copy in a new allocated buffer) the source string. More...
 
XMLDLLENTRY void freeIXMLString (IXMLStr t)
 to free the string allocated inside the "stringDup" function. More...
 

Detailed Description

See the function example2() for some usage examples.

Function Documentation

XMLDLLENTRY void freeIXMLString ( IXMLStr  t)

to free the string allocated inside the "stringDup" function.

XMLDLLENTRY IXMLStr IXMLStringDup ( IXMLCStr  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 "IXMLNode::*_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 "freeIXMLString" function.

Referenced by example2().