1optionRestore(3) Programmer's Manual optionRestore(3)
2
3
4
6 optionRestore - restore option state from memory copy
7
8
10 #include <your-opts.h>
11 cc [...] -o outfile infile.c -lopts [...]
12
13 void optionRestore(tOptions * pOpts);
14
15
17 Copy back the option state from saved memory. The allocated memory is
18 left intact, so this routine can be called repeatedly without having to
19 call optionSaveState again. If you are restoring a state that was
20 saved before the first call to optionProcess(3AO), then you may change
21 the contents of the argc/argv parameters to optionProcess.
22
23 pOpts program options descriptor
24
25
27 If you have not called optionSaveState before, a diagnostic is printed
28 to stderr and exit is called.
29
31 The info documentation for the -lopts library.
32 ao_string_tokenize(3), configFileLoad(3), optionFileLoad(3), option‐
33 FindNextValue(3), optionFindValue(3), optionFree(3), optionGetValue(3),
34 optionLoadLine(3), optionMemberList(3), optionNextValue(3), optionOn‐
35 lyUsage(3), optionPrintVersion(3), optionPrintVersionAndReturn(3),
36 optionProcess(3), optionSaveFile(3), optionSaveState(3), optionUnload‐
37 Nested(3), optionVersion(3), strequate(3), streqvcmp(3), streqvmap(3),
38 strneqvcmp(3), strtransform(3),
39
40
41
42 2020-01-28 optionRestore(3)