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

Function xmlHashAddEntry2

ThirdParty/libxml2/vtklibxml2/hash.c:705–716  ·  view source on GitHub ↗

* xmlHashAddEntry2: * @hash: hash table * @key: first string key * @key2: second string key * @payload: pointer to the payload * * Add a hash table entry with two strings as key. * * See xmlHashAddEntry. * * Returns 0 on success and -1 in case of error. */

Source from the content-addressed store, hash-verified

703 * Returns 0 on success and -1 in case of error.
704 */
705int
706xmlHashAddEntry2(xmlHashTablePtr hash, const xmlChar *key,
707 const xmlChar *key2, void *payload) {
708 int res = xmlHashUpdateInternal(hash, key, key2, NULL, payload, NULL, 0);
709
710 if (res == 0)
711 res = -1;
712 else if (res == 1)
713 res = 0;
714
715 return(res);
716}
717
718/**
719 * xmlHashAddEntry3:

Callers 5

xmlXPathRegisterFuncNSFunction · 0.85
xmlSchemaSubstGroupAddFunction · 0.85
xmlSchemaInitBasicTypeFunction · 0.85

Calls 1

xmlHashUpdateInternalFunction · 0.85

Tested by

no test coverage detected