* 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 */
| 656 | * apply the walker function to it |
| 657 | */ |
| 658 | void |
| 659 | xmlListWalk(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: |
no outgoing calls
no test coverage detected