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* odesc, char const*
14       name, char const* val);
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       odesc  an option with a nested arg type
22
23       name   name of value to find
24
25       val    the matching value
26
27

RETURN VALUE

29       a compound value structure
30
31

ERRORS

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

SEE ALSO

47       The info documentation for the -lopts library.
48       ao_string_tokenize(3),  configFileLoad(3),  optionFileLoad(3),  option‐
49       FindNextValue(3),  optionFree(3), optionGetValue(3), optionLoadLine(3),
50       optionMemberList(3), optionNextValue(3), optionOnlyUsage(3), optionPro‐
51       cess(3),   optionRestore(3),   optionSaveFile(3),   optionSaveState(3),
52       optionUnloadNested(3),  optionVersion(3),  strequate(3),  streqvcmp(3),
53       streqvmap(3), strneqvcmp(3), strtransform(3),
54
55
56
57                                  2014-06-10                optionFindValue(3)
Impressum