hdf_destroy(3)

πŸ’– hdf_destroy β€” bestie, it's time to say goodbye πŸ’–

okay so welcome to the hdf_destroy(3) page, from the util/neo_hdf.h world πŸ¦‹ this is the one where we let a data set go. she's done her job, she's served cunt, and now we're freeing her. periodt.


✨ NAME ✨

hdf_destroy β€” deallocate an HDF data set πŸ’…


🌸 SYNOPSIS 🌸

#include <util/neo_hdf.h>

void hdf_destroy (HDF **hdf);

πŸŽ€ ARGUMENTS πŸŽ€

  • hdf β€” pointer to an HDF data set that you allocated with hdf_init. yes, it's a pointer to a pointer, she's fancy like that πŸ’–

πŸ‘‘ DESCRIPTION πŸ‘‘

so like, hdf_destroy is the function you call when you want to deallocate all the memory associated with an hdf data set. every last byte. gone. released. she's free πŸ¦‹

🚨 okay bestie listen, this part is important: even though you can pass an HDF node as an argument to this function, you are likely to cause a segfault if you continue to access the data set afterwards. like, that memory is not yours anymore. do not touch. do not look at it. do not text it back. 😭

also, heads up for the future tea: in the future, we may restrict hdf_destroy so it only works on the top level node. so like, don't get too attached to the node-passing lifestyle, iykyk πŸ™ˆ


⭐ RETURN VALUE ⭐

None. nothing. void. she gives you nothing back and that's the vibe πŸ’€


πŸ’œ SEE ALSO πŸ’œ

the whole friend group, fr fr β€” go read these next:


and that's the page!! 🫢 this lil angel came to you courtesy of ClearSilver, dated 12 July 2007 β€” yes she's vintage, yes she still ate, no cap. stay memory-safe out there bestie, mwah πŸ’‹βœ¨