optionRestore(3)
πΎ NAME πΎ
optionRestore β restore option state from memory copy
πΈ SYNOPSIS πΈ
#include <your-opts.h>
cc [...] -o outfile infile.c -lopts [...]
void optionRestore(tOptions * pOpts);
π DESCRIPTION π
okay so bestie, this is optionRestore(3) from the Programmer's Manual, and it's giving "undo button for your option state" energy. π
It copies the option state back from saved memory. The allocated memory is left intact, so this routine can be called repeatedly without having to call optionSaveState again. No cap, that's the whole slay. β¨
If you are restoring a state that was saved before the first call to optionProcess(3AO), then you may change the contents of the argc/argv parameters to optionProcess.
pOptsβ program options descriptor
π¨ ERRORS π¨
π¨ real talk: if you have not calledoptionSaveStatebefore, a diagnostic is printed tostderrandexitis called. like, the program is literally done. be careful, bestie. π
π¦ SEE ALSO π¦
The info documentation for the -lopts library.
ao_string_tokenize(3)configFileLoad(3)optionFileLoad(3)optionFindNextValue(3)optionFindValue(3)optionFree(3)optionGetValue(3)optionLoadLine(3)optionMemberList(3)optionNextValue(3)optionOnlyUsage(3)optionPrintVersion(3)optionPrintVersionAndReturn(3)optionProcess(3)optionSaveFile(3)optionSaveState(3)optionUnloadNested(3)optionVersion(3)strequate(3)streqvcmp(3)streqvmap(3)strneqvcmp(3)strtransform(3)
okay that's the whole page, bestie π«Ά β optionRestore(3) from the Programmer's Manual, dated 2018-08-26. mwah ππ
π¦ where this page comes from
- debian trixie: libopts25-dev 1:5.18.16-7 Β· GPL-3.0-or-later
- nixpkgs unstable: autogen 5.18.16
- ubuntu questing: libopts25-dev 1:5.18.16-7build1
- ubuntu resolute: libopts25-dev 1:5.18.16-7build2 Β· GPL-3.0-or-later
- ubuntu stonking: libopts25-dev 1:5.18.16-9 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms