* xmlListSearch: * @l: a list * @data: a search value * * Search the list for an existing value of @data * * Returns the value associated to @data or NULL in case of error */
| 223 | * Returns the value associated to @data or NULL in case of error |
| 224 | */ |
| 225 | void * |
| 226 | xmlListSearch(xmlListPtr l, void *data) |
| 227 | { |
| 228 | xmlLinkPtr lk; |
| 229 | if (l == NULL) |
| 230 | return(NULL); |
| 231 | lk = xmlListLinkSearch(l, data); |
| 232 | if (lk) |
| 233 | return (lk->data); |
| 234 | return NULL; |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * xmlListReverseSearch: |
no test coverage detected