optionFindValue(3)
π optionFindValue(3) β Programmer's Manual π
okay bestie, welcome to the optionFindValue(3) page from the Programmer's Manual β we're finding a hierarcicaly valued option instance today, and yes that spelling is staying exactly as it is, no cap. β¨
πΈ NAME πΈ
optionFindValue β find a hierarcicaly valued option instance π«Ά
β¨ SYNOPSIS β¨
#include <your-opts.h>
cc [...] -o outfile infile.c -lopts [...]
const tOptionValue * optionFindValue(const tOptDesc * odesc, char const
* name, char const * val);
π¦ DESCRIPTION π¦
This routine will find an entry in a nested value option or configurable. It searches through the list and returns a matching entry. Literally its whole job, and it ate. π
odescβ an option with a nested arg type.nameβ name of value to find.valβ the matching value.
π RETURN VALUE π
a compound value structure β¨
π ERRORS π
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. And yes, the original really trails off with@end itemizeright there, so we're preserving that lil formatting moment too:@end itemize
π SEE ALSO π
The info documentation for the -lopts library. π
And the whole bestie roster:
ao_string_tokenize(3)configFileLoad(3)optionFileLoad(3)optionFindNextValue(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),
Sign-off from the footer, bestie: this is optionFindValue(3) from the Programmer's Manual, dated 2018-08-26. Stay iconic, keep your nested values close, and may your errno always make sense. πππ¦
π¦ 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