1dictSearch(3)                     util/dict.h                    dictSearch(3)
2
3
4

NAME

6       dictSearch  - search for value in dictionary.
7

SYNOPSIS

9       #include <util/dict.h>
10
11
12       void *dictSearch(dictCtx dict, const char *id, void **plock);
13
14
15
16

ARGUMENTS

18       dict - dictionary to search in.
19       id - identifier of item to find.
20       plock - place for value lock (or NULL).
21
22

DESCRIPTION

24       Searches  for  <id>  in  <dict>, and returns value if found, or NULL if
25       not.  If <plock> is non-NULL, then the lock returned in <plock> will be
26       associated  with the returned value.  Until this lock is passed to dic‐
27       tReleaseLock(), the value will not be  passed  to  the  dictCleanupFunc
28       callback (see dictCleanup()).
29
30       MT-Level: Safe if <dict> thread-safe.
31
32

RETURN VALUE

34       plock - set to value lock.
35
36

SEE ALSO

38       dictDestroy(3),   dictCleanup(3),   dictReleaseLock(3),  dictRemove(3),
39       dictNext(3), dictCreate(3), dictSetValue(3), dictModifyValue(3),  dict‐
40       Search
41
42
43
44ClearSilver                      12 July 2007                    dictSearch(3)
Impressum