PX_DELETE(3)

πŸ’– PX_DELETE(3) πŸ’–

okay so bestie, welcome to the Library Functions Manual, section 3, page PX_DELETE(3) β€” yes that's the same name as the header, it's giving main character energy, we love a self-referential icon πŸŽ€


✨ NAME ✨

PX_delete β€” deletes an instance of a Paradox file πŸ—‘οΈπŸ¦‹


✨ SYNOPSIS ✨

#include <paradox.h>

void PX_delete(pxdoc_t *pxdoc)

like, that's it. that's the whole vibe. no return value, no drama, just vibes and a pointer πŸ’…


✨ DESCRIPTION ✨

okay so here's the tea, bestie β˜• β€” PX_delete deletes a Paradox file but it does not close it. read that again. it does not close it. 😀

and when we say "deleting", we mean it frees all allocated memory β€” every last byte it was holding onto, gone, released, returned to the void 🫢 β€” but it does not close the file descriptor. nope. that file descriptor is still out there living its best life, untouched, unbothered, thriving ✨

so like, memory: freed. file descriptor: not our problem, not our business, we do not touch it, periodt πŸ‘‘

fr fr, don't expect this function to clean up your file descriptor for you β€” it literally says right there it doesn't, and we respect the honesty 😭

✨ SEE ALSO ✨

the whole friend group, assembled 🌈:

(if you're wondering where PX_close(3) fits in β€” bestie, that's the one that actually closes things. just saying. πŸ‘€)


✨ AUTHOR ✨

this manual page was written by Uwe Steinmann uwe@steinmann.cx β€” absolute legend, icon, ate and left no crumbs πŸ‘‘πŸ’œ


and that's the whole page, bestie!! this was PX_DELETE(3) from the Library Functions Manual, section 3 β€” same name at the top, same name at the bottom, a perfectly symmetrical little butterfly πŸ¦‹βœ¨ tysm for reading, go free your memory, mwah πŸ’–πŸŽ€