dictModifyValue(3) util/dict.h dictModifyValue(3)NAME
dictModifyValue - create/modify an item.
SYNOPSIS
#include <util/dict.h>
NEOERR *dictModifyValue(dictCtx dict, const char *id, dictNewValueCB new_cb,
dictUpdateValueCB update, void *rock);
ARGUMENTS
dict - dictionary to add pair to.
id - identifier of value
new - function to call to create new value (may be NULL)
update - function to call to modify value (if NULL, the old
value is freed, and <new> is used)
rock - context to pass to <new> or <update>.
DESCRIPTION
Finds <id>'s value and calls <update>. If <id> is not in <dict>, calls <new> to obtain a new value.
MT-Level: Safe if <dict> thread-safe.
RETURN VALUE
None.
SEE ALSO dictDestroy(3), dictCleanup(3), dictReleaseLock(3), dictRemove(3), dictNext(3), dictCreate(3), dictSetValue(3), dictModifyValue(3), dict-
Search
ClearSilver 12 July 2007 dictModifyValue(3)
Check Out this Related Man Page
dictSearch(3) util/dict.h dictSearch(3)NAME
dictSearch - search for value in dictionary.
SYNOPSIS
#include <util/dict.h>
void *dictSearch(dictCtx dict, const char *id, void **plock);
ARGUMENTS
dict - dictionary to search in.
id - identifier of item to find.
plock - place for value lock (or NULL).
DESCRIPTION
Searches for <id> in <dict>, and returns value if found, or NULL if not. If <plock> is non-NULL, then the lock returned in <plock> will be
associated with the returned value. Until this lock is passed to dictReleaseLock(), the value will not be passed to the dictCleanupFunc
callback (see dictCleanup()).
MT-Level: Safe if <dict> thread-safe.
RETURN VALUE
plock - set to value lock.
SEE ALSO dictDestroy(3), dictCleanup(3), dictReleaseLock(3), dictRemove(3), dictNext(3), dictCreate(3), dictSetValue(3), dictModifyValue(3), dict-
Search
ClearSilver 12 July 2007 dictSearch(3)
I've got a file named jdictd.sh containing the following:
--- begin file contents ---
#! /bin/csh
echo I\'m running!
java -cp jdictd.jar org.dict.server.JDictd data/dict.ini
# Use the following line instead if JRE 1.1 is used
# jre -cp jdictd.jar org.dict.server.JDictd data/dict.ini
---end... (2 Replies)
I need help. I have set a password policy. But I want to dis allow setting user name as password.
My policy is as below...
min length =8
min diff=2
min alpha=2
max repeats=2
dictionary= /usr/share/dict/words
Still user can set his username as password (i.e. Jackie1234).
Code tags for... (11 Replies)
Hi Team,
I'm new to python and working on a project.
I have an API call which returns a dict(got the dict.values() and converted to list) as shown below:
dict_values()
Any clue, how can I get only offset values, in deed I need a sum of those. I can write a "shell sed command" inside python... (2 Replies)