1optionFindValue(3)            Programmer's Manual           optionFindValue(3)
2
3
4

NAME

6       optionFindValue - find a hierarcicaly valued option instance
7
8

SYNOPSIS

10       #include <your-opts.h>
11       cc [...] -o outfile infile.c -lopts [...]
12
13       const  tOptionValue*  optionFindValue(const  tOptDesc*  pOptDesc,  char
14       const* name, char const* value);
15
16

DESCRIPTION

18       This routine will find an entry in a nested  value  option  or  config‐
19       urable.  It will search through the list and return a matching entry.
20
21       pOptDesc
22              an option with a nested arg type
23
24       name   name of value to find
25
26       value  the matching value
27
28

RETURN VALUE

30       a compound value structure
31
32

ERRORS

34       The returned result is NULL and errno is set:
35
36
37
38
39
40
41
42       EINVAL  -  the  pOptValue does not point to a valid hierarchical option
43       value.
44
45       ENOENT - no entry matched the given name.  @end itemize
46

SEE ALSO

48       The info documentation for the -lopts library.
49       ao_string_tokenize(3),  configFileLoad(3),  optionFileLoad(3),  option‐
50       FindNextValue(3),  optionFree(3), optionGetValue(3), optionLoadLine(3),
51       optionNextValue(3),  optionOnlyUsage(3),  optionProcess(3),   optionRe‐
52       store(3), optionSaveFile(3), optionSaveState(3), optionUnloadNested(3),
53       optionVersion(3),  pathfind(3),   strequate(3),   streqvcmp(3),   stre‐
54       qvmap(3), strneqvcmp(3), strtransform(3),
55
56
57
58                                  2008-02-27                optionFindValue(3)
Impressum