lib/simap.c
/* Removes all of the mappings from 'simap' and frees them. */
Removes all of the mappings from 'simap' and frees them.
Removes all of the mappings from ' simap ' and frees them .
void
simap_clear(struct simap *simap)
{
    struct simap_node *node, *next;
    SIMAP_FOR_EACH_SAFE (node, next, simap) {
        hmap_remove(&simap->map, &node->node);
        free(node->name);
        free(node);
    }
}
void simap_clear ( struct simap * simap ) { struct simap_node * node , * next ; SIMAP_FOR_EACH_SAFE ( node , next , simap ) { hmap_remove ( & simap -> map , & node -> node ) ; free ( node -> name ) ; free ( node ) ; } }
Removes all of the mappings from 'simap' and frees them.
Removes all of the mappings from ' simap ' and frees them .