Name

chtbl_destroy

Synopsis

void chtbl_destroy(CHTbl *htbl);

Return Value

None.

Description

Destroys the chained hash table specified by htbl. No other operations are permitted after calling chtbl_destroy unless chtbl_init is called again. The chtbl_destroy operation removes all elements from a hash table and calls the function passed as destroy to chtbl_init once for each element as it is removed, provided destroy was not set to NULL.

Complexity

O (m), where m is the number of buckets in the hash table.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.179.59