📄 dictmodifyvalue.3
字号:
.TH dictModifyValue 3 "12 July 2007" "ClearSilver" "util/dict.h".de Ss.sp.ft CW.nf...de Se.fi.ft P.sp...SH NAMEdictModifyValue - create/modify an item..SH SYNOPSIS.Ss#include <util/dict.h>.Se.SsNEOERR *dictModifyValue(dictCtx dict, const char *id, dictNewValueCB new_cb, dictUpdateValueCB update, void *rock);.Se.SH ARGUMENTSdict - dictionary to add pair to..brid - identifier of value.brnew - function to call to create new value (may be NULL).brupdate - function to call to modify value (if NULL, the old.brvalue is freed, and <new> is used).brrock - context to pass to <new> or <update>..SH DESCRIPTIONFinds <id>'s value and calls <update>. If <id> isnot in <dict>, calls <new> to obtain a new value.MT-Level: Safe if <dict> thread-safe..SH "RETURN VALUE"None..SH "SEE ALSO".BR dictDestroy "(3), "dictCleanup "(3), "dictReleaseLock "(3), "dictRemove "(3), "dictNext "(3), "dictCreate "(3), "dictSetValue "(3), "dictModifyValue "(3), "dictSearch
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -