logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dictCleanup - cleanup dictionary

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.

Name

       dictCleanup  - cleanup dictionary

Return Value

       None.

See Also

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

ClearSilver                                       12 July 2007                                    dictCleanup(3)

Synopsis

       #include <util/dict.h>

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

See Also