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

Function xmlListSize

ThirdParty/libxml2/vtklibxml2/list.c:482–493  ·  view source on GitHub ↗

* xmlListSize: * @l: a list * * Get the number of elements in the list * * Returns the number of elements in the list or -1 in case of error */

Source from the content-addressed store, hash-verified

480 * Returns the number of elements in the list or -1 in case of error
481 */
482int
483xmlListSize(xmlListPtr l)
484{
485 xmlLinkPtr lk;
486 int count=0;
487
488 if (l == NULL)
489 return(-1);
490 /* TODO: keep a counter in xmlList instead */
491 for(lk = l->sentinel->next; lk != l->sentinel; lk = lk->next, count++);
492 return count;
493}
494
495/**
496 * xmlListPopFront:

Callers 1

xmlTextWriterWriteIndentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected