symClose | basic | EMF |
Closes and frees a symbol table
void symClose(sym_fd_t sd, void (*cleanup)(sym_t *symp));
sd | Table handle |
cleanup | Function pointer that performs any table specific cleanup |
This module implements a highly efficient generic symbol table with update and access routines. Symbols are simple character strings and the values they take can be flexible types as defined by value_t. This module allows multiple symbol tables to be created.
Frees all symbols in the hash table, then the hash table itself.
No return value
sym_fd_t id; symClose(id, websFreeVar); /********************************************* /* * Callback from symClose. Free the variable. */ static void websFreeVar(sym_t* sp) { valueFree(&sp->content); }