Added cfulist_set_free_fn()

In analogy with cfuhash_set_free_fn()
This commit is contained in:
Diogo Cordeiro
2018-06-08 12:52:10 +01:00
parent 1294791f0c
commit 4f4439828f
3 changed files with 14 additions and 5 deletions

View File

@@ -490,7 +490,12 @@ cfulist_map(). The return value is used to build a new list.
@deftypefun {cfulist_t *} cfulist_new ();
Returns a new list.
Creates a new list.
@end deftypefun
@deftypefun {cfulist_t *} cfulist_new_with_free_fn (cfulist_free_fn_t @var{ff})
Same as cfulist_new() except automatically calls cfulist_set_free_fn().
@end deftypefun
@deftypefun {size_t} cfulist_num_entries (cfulist_t *@var{list})