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

Function xmlListSearch

ThirdParty/libxml2/vtklibxml2/list.c:225–235  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

223 * Returns the value associated to @data or NULL in case of error
224 */
225void *
226xmlListSearch(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:

Callers 2

xmlC14NProcessAttrsAxisFunction · 0.85

Calls 1

xmlListLinkSearchFunction · 0.85

Tested by

no test coverage detected