blob: 2b0c87c0afba634ee15c5e491c9eba8927023832 (
plain)
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)
{
free_func_ref f = aux ;
(*f)((void *)s) ;
return 1 ;
}
void gensetdyn_deepfree (gensetdyn *g, free_func_ref f)
{
gensetdyn_iter(g, &freeiter, f) ;
gensetdyn_free(g) ;
}
|