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

Function xmlHashUpdateEntry2

ThirdParty/libxml2/vtklibxml2/hash.c:784–795  ·  view source on GitHub ↗

* xmlHashUpdateEntry2: * @hash: hash table * @key: first string key * @key2: second string key * @payload: pointer to the payload * @dealloc: deallocator function for replaced item or NULL * * Add a hash table entry with two strings as key. * * See xmlHashUpdateEntry. * * Returns 0 on success and -1 in case of error. */

Source from the content-addressed store, hash-verified

782 * Returns 0 on success and -1 in case of error.
783 */
784int
785xmlHashUpdateEntry2(xmlHashTablePtr hash, const xmlChar *key,
786 const xmlChar *key2, void *payload,
787 xmlHashDeallocator dealloc) {
788 int res = xmlHashUpdateInternal(hash, key, key2, NULL, payload,
789 dealloc, 1);
790
791 if (res == 1)
792 res = 0;
793
794 return(res);
795}
796
797/**
798 * xmlHashUpdateEntry3:

Callers 2

xmlAddDefAttrsFunction · 0.85

Calls 1

xmlHashUpdateInternalFunction · 0.85

Tested by

no test coverage detected