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

Function xmlHashAdd

ThirdParty/libxml2/vtklibxml2/hash.c:615–618  ·  view source on GitHub ↗

* xmlHashAdd: * @hash: hash table * @key: string key * @payload: pointer to the payload * * Add a hash table entry. If an entry with this key already exists, * payload will not be updated and 0 is returned. This return value * can't be distinguished from out-of-memory errors, so this function * should be used with care. * * Available since 2.13.0. * * Returns 1 on success, 0 if an entr

Source from the content-addressed store, hash-verified

613 * Returns 1 on success, 0 if an entry exists and -1 in case of error.
614 */
615int
616xmlHashAdd(xmlHashTablePtr hash, const xmlChar *key, void *payload) {
617 return(xmlHashUpdateInternal(hash, key, NULL, NULL, payload, NULL, 0));
618}
619
620/**
621 * xmlHashAdd2:

Callers 3

xmlAddNotationDeclFunction · 0.85
xmlAddRefFunction · 0.85
xmlAddEntityFunction · 0.85

Calls 1

xmlHashUpdateInternalFunction · 0.85

Tested by

no test coverage detected