dictcleanup(3) - Linux man page
Name
dictCleanup - cleanup dictionarySynopsis
#include <util/dict.h> void dictCleanup(dictCtx dict, dictCleanupFunc cleanup, void *rock);
Arguments
dict - dictionary to cleanupcleanup - 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.