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

Function xmlStrcmp

ThirdParty/libxml2/vtklibxml2/xmlstring.c:142–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 */
141
142int
143xmlStrcmp(const xmlChar *str1, const xmlChar *str2) {
144 if (str1 == str2) return(0);
145 if (str1 == NULL) return(-1);
146 if (str2 == NULL) return(1);
147#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
148 return(strcmp((const char *)str1, (const char *)str2));
149#else
150 do {
151 int tmp = *str1++ - *str2;
152 if (tmp != 0) return(tmp);
153 } while (*str2++ != 0);
154 return 0;
155#endif
156}
157
158/**
159 * xmlStrEqual:

Callers 12

readSingleNodeMethod · 0.85
xmlC14NNsCompareFunction · 0.85
xmlC14NAttrsCompareFunction · 0.85
htmlElementAllowedHereFunction · 0.85
htmlAttrAllowedFunction · 0.85
htmlDtdDumpOutputFunction · 0.85
xmlBuildRelativeURISafeFunction · 0.85
LoadArgumentsFromXMLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected