DOKK / manpages / debian 12 / clearsilver-dev / dictCleanup.3.en
dictCleanup(3) util/dict.h dictCleanup(3)

dictCleanup - cleanup dictionary

#include <util/dict.h>

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

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

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

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

None.

dictDestroy(3), dictCleanup(3), dictReleaseLock(3), dictRemove(3), dictNext(3), dictCreate(3), dictSetValue(3), dictModifyValue(3), dictSearch

12 July 2007 ClearSilver