struct hsh_table *h;
int i;
- assert (size > 0);
+ if ( size == 0 )
+ return NULL;
+
assert (compare != NULL);
assert (hash != NULL);
for (i = 0; i < h->size; i++)
h->entries[i] = NULL;
+
+ h->used = 0;
}
/* Destroys table H and all its contents. */
void *const *b = b_;
struct hsh_table *h = h_;
+ assert(a);
+ assert(b);
+
return h->compare (*a, *b, h->aux);
}