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:


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 πŸ’œπŸ§šβ€β™€οΈ