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

Function xmlListWalk

ThirdParty/libxml2/vtklibxml2/list.c:658–668  ·  view source on GitHub ↗

* xmlListWalk: * @l: a list * @walker: a processing function * @user: a user parameter passed to the walker function * * Walk all the element of the first from first to last and * apply the walker function to it */

Source from the content-addressed store, hash-verified

656 * apply the walker function to it
657 */
658void
659xmlListWalk(xmlListPtr l, xmlListWalker walker, void *user) {
660 xmlLinkPtr lk;
661
662 if ((l == NULL) || (walker == NULL))
663 return;
664 for(lk = l->sentinel->next; lk != l->sentinel; lk = lk->next) {
665 if((walker(lk->data, user)) == 0)
666 break;
667 }
668}
669
670/**
671 * xmlListReverseWalk:

Callers 5

xmlC14NProcessAttrsAxisFunction · 0.85
xmlRemoveRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected