optionFindNextValue(3)
π NAME π
optionFindNextValue β find a hierarcicaly valued option instance. Yes bestie, that spelling is straight from the page, no cap. This is optionFindNextValue(3) from the Programmerβs Manual, and itβs here to help you find your way through nested option values like a total main character. π«Ά
π¦ SYNOPSIS π¦
#include <your-opts.h>
cc [...] -o outfile infile.c -lopts [...]
const tOptionValue * optionFindNextValue(const tOptDesc * odesc, const
tOptionValue * pPrevVal, char const * name, char const * value);
β¨ DESCRIPTION β¨
Okay so this routine will find the next entry in a nested value option or configurable. It will search through the list and return the next entry that matches the criteria. Literally iconic behavior. π
The arguments are giving:
odescβ an option with a nested arg type. Thatβs the starting energy.pPrevValβ the last entry. The previous one, bestie.nameβ name of value to find. Like the name tag at the function party.valueβ the matching value. The actual fit check.
π RETURN VALUE π
It returns a compound value structure. Slay. β¨
π ERRORS π
If things go sideways, the returned result is NULL and errno is set:
EINVALβ thepOptValuedoes not point to a valid hierarchical option value.ENOENTβ no entry matched the given name.@end itemize(yes, that little artifact is in the original too β keeping every crumb π).
π SEE ALSO π
The info documentation for the -lopts library. Then the whole reference squad, no skips:
ao_string_tokenize(3)configFileLoad(3)optionFileLoad(3)optionFindValue(3)optionFree(3)optionGetValue(3)optionLoadLine(3)optionMemberList(3)optionNextValue(3)optionOnlyUsage(3)optionPrintVersion(3)optionPrintVersionAndReturn(3)optionProcess(3)optionRestore(3)optionSaveFile(3)optionSaveState(3)optionUnloadNested(3)optionVersion(3)strequate(3)streqvcmp(3)streqvmap(3)strneqvcmp(3)strtransform(3),
Thatβs the whole page, bestie. This was optionFindNextValue(3) from the Programmerβs Manual, dated 2018-08-26. Byeee, go find that next value πβ¨
π¦ 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