MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / xmlStrncasecmp

Function xmlStrncasecmp

Externals/LibXML/xmlstring.c:295–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 */
294
295int
296xmlStrncasecmp(const xmlChar *str1, const xmlChar *str2, int len) {
297 register int tmp;
298
299 if (len <= 0) return(0);
300 if (str1 == str2) return(0);
301 if (str1 == NULL) return(-1);
302 if (str2 == NULL) return(1);
303 do {
304 tmp = casemap[*str1++] - casemap[*str2];
305 if (tmp != 0 || --len == 0) return(tmp);
306 } while (*str2++ != 0);
307 return 0;
308}
309
310/**
311 * xmlStrchr:

Callers 12

test_xmlStrncasecmpFunction · 0.85
htmlParseScriptFunction · 0.85
xmlNanoHTTPScanAnswerFunction · 0.85
xmlFileOpen_realFunction · 0.85
xmlFileOpenWFunction · 0.85
xmlGzfileOpen_realFunction · 0.85
xmlGzfileOpenWFunction · 0.85
xmlIOHTTPMatchFunction · 0.85
xmlIOFTPMatchFunction · 0.85
xmlNoNetExistsFunction · 0.85
xmlStrcasestrFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_xmlStrncasecmpFunction · 0.68