* 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. */
| 703 | * Returns 0 on success and -1 in case of error. |
| 704 | */ |
| 705 | int |
| 706 | xmlHashAddEntry2(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: |
no test coverage detected