dictCleanup man page

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.

See Also

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

Referenced By

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

12 July 2007 ClearSilver util/dict.h