dictCleanup(3)
β¨ dictCleanup(3) β¨
okay bestie, welcome to the dictCleanup page from util/dict.h β yes she's a real one, a lil function that goes through your dictionary and cleans house π
πΈ NAME πΈ
dictCleanup β cleanup dictionary. that's it, that's the vibe. she tidies. π§Ήβ¨
π¦ SYNOPSIS π¦
#include <util/dict.h>
void dictCleanup(dictCtx dict, dictCleanupFunc cleanup, void *rock);
π ARGUMENTS π
dictβ the dictionary you're cleaning up. your main character dict πcleanupβ the cleanup callback. the girl doing the actual work π«Άrockβ the thing you pass along tocleanup. her little plus-one π
π DESCRIPTION π
okay so listen. dictCleanup calls cleanup for every single item in dict. every. one. no skipping, no playing favourites π―
and here's the tea: if cleanup returns true, then that item gets removed from dict. like, gone gone. so your callback is lowkey the bouncer deciding who stays and who gets escorted out the door πβ¨
MT-Level: Safe if dict is thread-safe. that's it, that's the whole condition β no cap π₯
β RETURN VALUE β
None. she gives you nothing back and honestly? iconic behaviour. she just does the thing and leaves π
π SEE ALSO π
dictDestroy(3)dictCleanup(3)β yes she's linking to herself, she's her own hype woman, we respect it πdictReleaseLock(3)dictRemove(3)dictNext(3)dictCreate(3)dictSetValue(3)dictModifyValue(3)dictSearch
and that's the whole page bestie, fr fr πβ¨ this came to you from ClearSilver, dated 12 July 2007 β vintage but still slaying π π¦ bye pookie, go clean up that dict π
π¦ where this page comes from
- debian bookworm: clearsilver-dev 0.10.5-4+b5
- debian trixie: clearsilver-dev 0.10.5-6+b1
- epel 10: clearsilver 0.10.5-80.el10_2 Β· Apache-1.1
- epel 9: clearsilver 0.10.5-74.el9 Β· Apache-1.1
- fedora 43: clearsilver 0.10.5-80.fc43 Β· Apache-1.1
- fedora 44: clearsilver 0.10.5-82.fc44 Β· Apache-1.1
- ubuntu jammy: clearsilver-dev 0.10.5-4build3
- ubuntu noble: clearsilver-dev 0.10.5-4build7
- ubuntu questing: clearsilver-dev 0.10.5-6build1
- ubuntu resolute: clearsilver-dev 0.10.5-7
- ubuntu stonking: clearsilver-dev 0.10.5-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms