Update from 1.0.0-stable.

This commit is contained in:
Dr. Stephen Henson
2009-05-16 16:18:45 +00:00
parent efa59b8d59
commit 6bf4ca0840
3 changed files with 19 additions and 0 deletions

View File

@@ -234,3 +234,17 @@ pqueue_next(pitem **item)
return ret;
}
int
pqueue_size(pqueue_s *pq)
{
pitem *item = pq->items;
int count = 0;
while(item != NULL)
{
count++;
item = item->next;
}
return count;
}