* xmlAddIDSafe: * @attr: the attribute holding the ID * @value: the attribute (ID) value * * Register a new id declaration * * Available since 2.13.0. * * Returns 1 on success, 0 if the ID already exists, -1 if a memory * allocation fails. */
| 2398 | * allocation fails. |
| 2399 | */ |
| 2400 | int |
| 2401 | xmlAddIDSafe(xmlAttrPtr attr, const xmlChar *value) { |
| 2402 | return(xmlAddIDInternal(attr, value, NULL)); |
| 2403 | } |
| 2404 | |
| 2405 | /** |
| 2406 | * xmlAddID: |
no test coverage detected