MCPcopy Create free account
hub / github.com/Kitware/VTK / readerStrdup

Function readerStrdup

ThirdParty/libxml2/vtklibxml2/xmlreader.c:193–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193static xmlChar *
194readerStrdup(xmlTextReaderPtr reader, const xmlChar *string) {
195 xmlChar *copy;
196
197 if (string == NULL)
198 return(NULL);
199
200 copy = xmlStrdup(string);
201 if (copy == NULL)
202 xmlTextReaderErrMemory(reader);
203
204 return(copy);
205}
206
207static const xmlChar *
208constString(xmlTextReaderPtr reader, const xmlChar *string) {

Callers 9

xmlTextReaderLocalNameFunction · 0.85
xmlTextReaderNameFunction · 0.85
xmlTextReaderPrefixFunction · 0.85
xmlTextReaderValueFunction · 0.85

Calls 2

xmlStrdupFunction · 0.85
xmlTextReaderErrMemoryFunction · 0.85

Tested by

no test coverage detected