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       dictReleaseLock(3),    dictRemove(3),    dictNext(3),   dictDestroy(3),
39       dictCreate(3),  dictSetValue(3),   dictModifyValue(3),   dictSearch(3),
40       dictCleanup
41
42
43
44ClearSilver                    14 November 2006                  dictSearch(3)
Impressum