dictcleanup(3) - Linux man page

Name

dictCleanup - cleanup dictionary

Synopsis

#include <util/dict.h>

void dictCleanup(dictCtx dict, dictCleanupFunc cleanup, void *rock);

Arguments

dict - dictionary to cleanup
cleanup - cleanup callback
rock - to pass to <cleanup>

Description

Calls <cleanup> for every item in <dict>. If <cleanup> returns true, then item is removed from <dict>.

MT-Level: Safe if <dict> thread-safe.

Return Value

None.

See Also

dictdestroy(3), dictCleanup(3), dictreleaselock(3), dictremove(3), dictnext(3), dictcreate(3), dictsetvalue(3), dictmodifyvalue(3), dictSearch

Referenced By

dictsearch(3)