Exemplo n.º 1
0
/**
 * 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;
}
Exemplo n.º 2
0
/**
 * 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;
}