optionFree(3)
π NAME π
optionFree β free allocated option processing memory. This is the optionFree(3) page from the Programmer's Manual, bestie, and it's all about cleaning up after AutoOpts. π§
β¨ SYNOPSIS β¨
#include <your-opts.h>
cc [...] -o outfile infile.c -lopts [...]
void optionFree(tOptions * pOpts);
π DESCRIPTION π
okay so AutoOpts sometimes allocates memory and puts pointers to it in the option state structures. optionFree() deallocates all such memory. it's the cleanup routine, periodt. π«§
pOptsβ program options descriptor.
π«Ά ERRORS π«Ά
As long as memory has not been corrupted, this routine is always successful. no cap β if memory is fine, it's a slay, no error vibes. π
π SEE ALSO π
The info documentation for the -lopts library.
ao_string_tokenize(3)configFileLoad(3)optionFileLoad(3)optionFindNextValue(3)optionFindValue(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 optionFree(3) page from the Programmer's Manual, dated 2018-08-26 β mwah, go free that memory bestie! πβ¨
π¦ 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