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

Function xmlListRemoveLast

ThirdParty/libxml2/vtklibxml2/list.c:366–380  ·  view source on GitHub ↗

* xmlListRemoveLast: * @l: a list * @data: list data * * Remove the last instance associated to data in the list * * Returns 1 if a deallocation occurred, or 0 if not found */

Source from the content-addressed store, hash-verified

364 * Returns 1 if a deallocation occurred, or 0 if not found
365 */
366int
367xmlListRemoveLast(xmlListPtr l, void *data)
368{
369 xmlLinkPtr lk;
370
371 if (l == NULL)
372 return(0);
373 /*Find the last instance of this data */
374 lk = xmlListLinkReverseSearch(l, data);
375 if (lk != NULL) {
376 xmlLinkDeallocator(l, lk);
377 return 1;
378 }
379 return 0;
380}
381
382/**
383 * xmlListRemoveAll:

Callers

nothing calls this directly

Calls 2

xmlListLinkReverseSearchFunction · 0.85
xmlLinkDeallocatorFunction · 0.85

Tested by

no test coverage detected