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

Function xmlCmpTextWriterStackEntry

ThirdParty/libxml2/vtklibxml2/xmlwriter.c:4301–4320  ·  view source on GitHub ↗

* xmlCmpTextWriterStackEntry: * @data0: the first data * @data1: the second data * * Compare callback for the xmlList. * * Returns -1, 0, 1 */

Source from the content-addressed store, hash-verified

4299 * Returns -1, 0, 1
4300 */
4301static int
4302xmlCmpTextWriterStackEntry(const void *data0, const void *data1)
4303{
4304 xmlTextWriterStackEntry *p0;
4305 xmlTextWriterStackEntry *p1;
4306
4307 if (data0 == data1)
4308 return 0;
4309
4310 if (data0 == 0)
4311 return -1;
4312
4313 if (data1 == 0)
4314 return 1;
4315
4316 p0 = (xmlTextWriterStackEntry *) data0;
4317 p1 = (xmlTextWriterStackEntry *) data1;
4318
4319 return xmlStrcmp(p0->name, p1->name);
4320}
4321
4322/**
4323 * misc

Callers

nothing calls this directly

Calls 1

xmlStrcmpFunction · 0.85

Tested by

no test coverage detected