optionMemberList(3)
β¨ optionMemberList(3) β¨
okay so this is a page from the Programmer's Manual π and it's all about optionMemberList β buckle up bestie, it's actually so simple π
πΈ NAME πΈ
optionMemberList β get the list of members of a bit mask set π
β¨ SYNOPSIS β¨
#include <your-opts.h>
cc [...] -o outfile infile.c -lopts [...]
char * optionMemberList(tOptDesc * od);
like, that's the whole vibe check right there π«Ά
π DESCRIPTION π
so what does it do? it converts the OPT_VALUE_name mask value into an allocated string. literally that's it, that's the whole function π₯
β οΈ heads up bestie: it is the caller's responsibility to free the string. no cap. you allocate it, you clean it up β main character energy means taking responsibility for your own memory π
odβ the set membership option description π
π RETURN VALUE π
the names of the set bits β¨ (yes, like, literally the names β in a string, allocated, remember the free thing? π)
π¦ SEE ALSO π¦
the info documentation for the -lopts library π β go read it, iykyk
and also, in no particular order, the whole friend group:
ao_string_tokenize(3)configFileLoad(3)optionFileLoad(3)optionFindNextValue(3)optionFindValue(3)optionFree(3)optionGetValue(3)optionLoadLine(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)
and that's the page!! mwah π this one's dated 2018-08-26 and it's optionMemberList(3) all the way through β go free your strings and slay ππ§ββοΈ
π¦ 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