Trf_DeleteOptions(3)

πŸ’… Trf_DeleteOptions β€” the cleanup era πŸ’…

okay so bestie, we're in the Library Functions Manual and this page is Trf_DeleteOptions(3). It's the other half of the options lifecycle. If Trf_CreateOptions is the glow-up, this is the "okay we're done here, go home" moment. And honestly? Both are necessary. Balance. 🧚


✨ NAME ✨

Trf_DeleteOptions β€” the interface to the procedures that delete a container you made earlier with Trf_CreateOptions. no cap, that's the whole job. πŸ—‘οΈ


🌸 SYNOPSIS 🌸

#include <transform.h>

void Trf_DeleteOptions
(
     Trf_Options options,
     ClientData clientData
);

πŸŽ€ PARAMETERS πŸŽ€

  • Trf_Options options β€” the container you want to destroy. yeet it. πŸ’€ It's the thing you're here to take apart.
  • ClientData clientData β€” arbitrary info, exactly as defined in Trf_TypeDefinition.clientData. it's giving "whatever you need to pass along," and the library is not gonna ask questions. πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

so here's the deal: it is this procedure's responsibility to clear and release all the memory of the specified container. all of it. every last byte, no crumbs left. ✨

and the container must have been created by the corresponding procedure of type Trf_CreateOptions β€” like, you can't just hand it some random thing and expect a clean goodbye. matching pairs only, iykyk. 🫢


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr:


lowkey important: if you created it with Trf_CreateOptions, you free it with Trf_DeleteOptions. don't leave it hanging, bestie, that's not main character energy, that's a memory leak. 😭

and that's the page, mwah πŸ’‹ this lil' rewrite was served up from c2man transform.h and dated 27 August 2002 β€” yes, an actual icon, born before most of us. periodt. πŸ‘‘πŸŒˆ