dictCleanup(3)

dictCleanup3

Cleanup dictionary

Usage

#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>

Overview

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.

Releases

10 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0–13

From clearsilver-dev 0.10.5-6+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.