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.


that's the whole optionFree(3) page from the Programmer's Manual, dated 2018-08-26 β€” mwah, go free that memory bestie! πŸ’–βœ¨