mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 05:38:21 +00:00
hashtable_destroy()
This commit is contained in:
@@ -112,3 +112,12 @@ void* hashtable_get(hashtable* table, char* key){
|
||||
|
||||
return entry->val;
|
||||
}
|
||||
|
||||
void hashtable_destroy(hashtable* table){
|
||||
|
||||
// would be cool if this also deleted non removed entries
|
||||
|
||||
free(table->entries);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user