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

Function xmlListLinkSearch

ThirdParty/libxml2/vtklibxml2/list.c:137–151  ·  view source on GitHub ↗

* xmlListSearch: * @l: a list * @data: a data * * Search data in the list * * Returns the link containing the data or NULL */

Source from the content-addressed store, hash-verified

135 * Returns the link containing the data or NULL
136 */
137static xmlLinkPtr
138xmlListLinkSearch(xmlListPtr l, void *data)
139{
140 xmlLinkPtr lk;
141 if (l == NULL)
142 return(NULL);
143 lk = xmlListLowerSearch(l, data);
144 if (lk == l->sentinel)
145 return NULL;
146 else {
147 if (l->linkCompare(lk->data, data) ==0)
148 return lk;
149 return NULL;
150 }
151}
152
153/**
154 * xmlListLinkReverseSearch:

Callers 2

xmlListSearchFunction · 0.85
xmlListRemoveFirstFunction · 0.85

Calls 1

xmlListLowerSearchFunction · 0.85

Tested by

no test coverage detected