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

Function xmlFastStrEqual

ThirdParty/libxml2/vtklibxml2/hash.c:268–275  ·  view source on GitHub ↗

* xmlFastStrEqual: * @s1: string * @s2: string * * Compare two strings for equality, allowing NULL values. */

Source from the content-addressed store, hash-verified

266 * Compare two strings for equality, allowing NULL values.
267 */
268static int
269xmlFastStrEqual(const xmlChar *s1, const xmlChar *s2) {
270 if (s1 == NULL)
271 return(s2 == NULL);
272 else
273 return((s2 != NULL) &&
274 (strcmp((const char *) s1, (const char *) s2) == 0));
275}
276
277/**
278 * xmlHashFindEntry:

Callers 2

xmlHashFindEntryFunction · 0.85
xmlHashScanFull3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected