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

NAME

6       optionSaveFile - saves the option state to a file
7
8

SYNOPSIS

10       #include <your-opts.h>
11       cc [...] -o outfile infile.c -lopts [...]
12
13       void optionSaveFile(tOptions* pOpts);
14
15

DESCRIPTION

17       This  routine  will save the state of option processing to a file.  The
18       name of that file can be specified with the argument to the --save-opts
19       option,  or  by  appending  the  rcfile  attribute  to  the last homerc
20       attribute.  If no rcfile attribute was specified, it  will  default  to
21       .programnamerc.  If you wish to specify another file, you should invoke
22       the SET_OPT_SAVE_OPTS( filename ) macro.
23
24       pOpts  program options descriptor
25
26

ERRORS

28       If no homerc file was specified, this routine will silently return  and
29       do nothing.  If the output file cannot be created or updated, a message
30       will be printed to stderr and the routine will return.
31

SEE ALSO

33       The info documentation for the -lopts library.
34       ao_string_tokenize(3),  configFileLoad(3),  optionFileLoad(3),  option‐
35       FindNextValue(3), optionFindValue(3), optionFree(3), optionGetValue(3),
36       optionLoadLine(3), optionNextValue(3),  optionOnlyUsage(3),  optionPro‐
37       cess(3),  optionRestore(3),  optionSaveState(3), optionUnloadNested(3),
38       optionVersion(3),  pathfind(3),   strequate(3),   streqvcmp(3),   stre‐
39       qvmap(3), strneqvcmp(3), strtransform(3),
40
41
42
43                                  2008-02-27                 optionSaveFile(3)
Impressum