diff options
Diffstat (limited to 'base/hash.c')
-rw-r--r-- | base/hash.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/hash.c b/base/hash.c index e54ac7ea..65bc7130 100644 --- a/base/hash.c +++ b/base/hash.c @@ -73,6 +73,13 @@ fz_newhash(fz_hashtable **tablep, int initialsize, int keylen) return nil; } +void +fz_emptyhash(fz_hashtable *table) +{ + table->load = 0; + memset(table->ents, 0, sizeof(fz_hashentry) * table->size); +} + int fz_hashlen(fz_hashtable *table) { |