dictSetValue(3)
π dictSetValue(3) π
okay so bestie, this one lives in util/dict.h and it's literally the glow-up button for your dictionary entries. β¨
πΈ NAME πΈ
dictSetValue β set/reset an item's value. that's it, that's the whole job, and she does it flawlessly π
π¦ SYNOPSIS π¦
#include <util/dict.h>
NEOERR *dictSetValue(dictCtx dict, const char *id, void *value);
π ARGUMENTS π
dictβ the dictionary you're adding the pair to. your little home base πidβ the identifier you wanna insert or update. the name tag, the vibe check, the who-is-who πͺͺvalueβ the value you're storing. and bestie, listen: this may NOT beNULL. like, not even a little. don't do it. π«
β¨ DESCRIPTION β¨
so what she does is: she updates the <id>/<value> pair into <dict>. and if <id> is not already in <dict>? no worries, she just creates it. icon behaviour, honestly. not me being obsessed with an insert-or-update function π
MT-Level: Safe if <dict> is thread-safe. like, she matches your energy. if your dict is thread-safe, she's thread-safe. periodt.
π RETURN VALUE π
None. she doesn't return anything. she's mysterious like that. she just does it. π
π₯ SEE ALSO π₯
dictDestroy(3)dictCleanup(3)dictReleaseLock(3)dictRemove(3)dictNext(3)dictCreate(3)dictSetValue(3)dictModifyValue(3)dictSearch
iykyk, go read the whole friend group π
ClearSilver, 12 July 2007 β yeah she's vintage, she's classic, she's been slaying since 2007 and she has not missed a day since π«Άβ¨
π¦ 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