RTF_DESTROY_FILTER(3)

πŸ’– RTF_DESTROY_FILTER πŸ’–

okay bestie, welcome to the rtfilter library manual, page RTF_DESTROY_FILTER(3) β€” and yeah, it's a short one, but it's important so let's not skip it, mkay? 🫢


✨ NAME ✨

rtf_filter β€” destroys a filter πŸ’…


🌸 SYNOPSIS 🌸

#include <rtfilter.h>

void rtf_destroy_filter(hfilter filt);

πŸ¦‹ DESCRIPTION πŸ¦‹

So like, this function destroys the filter that the handle filt is pointing at, and it frees all the associated resources too. Cleanup era. ✨

🚨 bestie listen: after destruction, you should not make any reference to filt. Not one. Not even a little peek. It's gone, it's giving ghost, let it rest. πŸ‘»

BUT β€” and this is the cute part β€” if filt is NULL, the function just returns without doing anything. No drama, no crash, it literally just vibes and leaves. 🧚


πŸ’« RETURN VALUE πŸ’«

None. Nothing. Nada. It returns void and that's the whole story. 😌


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the page fr fr β€” brought to you by the lovely people at EPFL, circa 2010, and it's still slaying to this day πŸ’œ

πŸ“¦ where this page comes from