dictNext(3) util/dict.h dictNext(3)NAME
dictNext - search for next value in dictionary.
SYNOPSIS
#include <util/dict.h>
void *dictNext(dictCtx dict, char **id, void **plock);
ARGUMENTS
dict - dictionary to iterate over.
id - pointer to identifier of last item found, or
pointer to NULL to retrieve first.
plock - place for value lock (or NULL).
DESCRIPTION
Can be used to iterate through values in the dictionary. The order is the order of the hash of the ids, which isn't usefully externally.
Will return the 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 dict-
Cleanup()).
MT-Level: Safe if <dict> thread-safe.
RETURN VALUE
plock - set to value lock.
id - pointer to id of found value
SEE ALSO dictDestroy(3), dictCleanup(3), dictReleaseLock(3), dictRemove(3), dictNext(3), dictCreate(3), dictSetValue(3), dictModifyValue(3), dict-
Search
ClearSilver 12 July 2007 dictNext(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)
Hey,
I am looking for an inbuilt unix dictionary.I tried to look at the path /usr/dict/word and I do not find anything any dict directory in the /usr folder. Can anyone please tell me how to find out this dictionary?
Thanks
Lee. (1 Reply)
HI
I need to get the function "kick" to get executed in any way the parameters are passed in to the function. The parameters are first stored in a dictionary
self.otherlist = {}
print self.otherlist
self.populateTestList(self.system_type)
print... (1 Reply)
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)