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