pl_hashtabledestroy.rst (561B)
1 PL_HashTableDestroy 2 =================== 3 4 Frees the table and all the entries. 5 6 7 Syntax 8 ------ 9 10 .. code:: 11 12 #include <plhash.h> 13 14 void PL_HashTableDestroy(PLHashTable *ht); 15 16 17 Parameter 18 ~~~~~~~~~ 19 20 The function has the following parameter: 21 22 ``ht`` 23 A pointer to the hash table to be destroyed. 24 25 26 Description 27 ----------- 28 29 :ref:`PL_HashTableDestroy` frees all the entries in the table and the table 30 itself. The entries are freed by the ``freeEntry`` function (with the 31 ``HT_FREE_ENTRY`` flag) in the ``allocOps`` structure supplied when the 32 table was created.