set_free

Frees the resources used by a set, then frees the set itself.

Syntax

void set_free(Set* set);
Name Type Description
set Set* A pointer to the set.

Example

SET_DEFINE_H(StringSet, str_set, char*)
SET_DEFINE_C(StringSet, str_set, char*, gds_fnv32, strcmp)

StringSet* set = str_set_create();

// Use the set...

str_set_free(set);