1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* ISC license. */ #include <skalibs/functypes.h> #include <skalibs/gensetdyn.h> static int freeiter (char *s, void *aux) { freefunc_t_ref f = aux ; (*f)((void *)s) ; return 1 ; } void gensetdyn_deepfree (gensetdyn *g, freefunc_t_ref f) { gensetdyn_iter(g, &freeiter, f) ; gensetdyn_free(g) ; }