Beispiel #1
0
bool
hashtable_itor_nextn(hashtable_itor* itor, size_t count)
{
    ASSERT(itor != NULL);

    while (count--)
	if (!hashtable_itor_next(itor))
	    return false;
    return itor->node != NULL;
}
Beispiel #2
0
int
hashtable_itor_nextn(hashtable_itor *itor, unsigned count)
{
    ASSERT(itor != NULL);

    if (!count)
        RETVALID(itor);

    while (count) {
        if (!hashtable_itor_next(itor))
            break;
        count--;
    }
    return count == 0;
}