/** * xmlListRemoveAll: * @param l a list * @param data list data * * Remove the all instance associated to data in the list * * Returns the number of deallocation, or 0 if not found */ int xmlListRemoveAll(xmlListPtr list, void *data) { int count=0; while(xmlListRemoveFirst(list, data)) count++; return count; }
/** * xmlListRemoveAll: * @l: a list * @data: list data * * Remove the all instance associated to data in the list * * Returns the number of deallocation, or 0 if not found */ int xmlListRemoveAll(xmlListPtr l, void *data) { int count=0; if (l == NULL) return(0); while (xmlListRemoveFirst(l, data)) count++; return count; }