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

NAME

6       optionGetValue - get a specific value from a hierarcical list
7
8

SYNOPSIS

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

DESCRIPTION

18       This routine will find an entry in a nested  value  option  or  config‐
19       urable.   If  "valueName"  is  NULL,  then the first entry is returned.
20       Otherwise, the first entry with a name that exactly matches  the  argu‐
21       ment will be returned.
22
23       pOptValue
24              a hierarchcal value
25
26       valueName
27              name of value to get
28
29

RETURN VALUE

31       a compound value structure
32
33

ERRORS

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

SEE ALSO

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