PS_FREE_GLYPH_LIST(3)

πŸ’– PS_FREE_GLYPH_LIST πŸ’–

okay so bestie, welcome to the Library Functions Manual page for PS_free_glyph_list β€” it's short, it's sweet, it's the cleanup queen of the pslib glyph world, and honestly? she ate. ✨


🌸 NAME 🌸

PS_free_glyph_list β€” frees memory allocated for glyph list

like literally, that's her whole job. free the memory. no drama. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <pslib.h>

void PS_free_glyph_list(PSDoc *psdoc, char **glyphlist, int len)

she takes three things: a PSDoc *psdoc, a char **glyphlist, and an int len, and she returns... nothing. void. she gives nothing back and that's the point, that's the whole vibe. 🫢


✨ DESCRIPTION ✨

So here's the tea: PS_free_glyph_list frees the memory that was allocated for the list of glyph names β€” the exact list that PS_glyph_list(3) handed you earlier. You got your glyphs, you did your thing with them, and now you gotta let them go. Closure. Growth. main character energy. 😭

ngl this function is not old-old, she's a newer addition: PS_free_glyph_list has been introduced in version 0.4.0 of pslib. so if you're running something older, she's simply not there, and that's a vibe check you need to pass first. πŸ’€

πŸŽ€ reminder bestie: this is the freeing function. the getting function is her sister, PS_glyph_list(3). don't mix them up. one gives, one takes away. iconic sibling dynamic fr fr.

πŸ‘‘ SEE ALSO πŸ‘‘

that's it, that's the whole family tree. 🌈


πŸ“ AUTHOR πŸ“

This manual page was written by Uwe Steinmann uwe@steinmann.cx. absolute legend, wrote the docs and gave us the contact info, we love a transparent king. πŸ‘‘


and that's the page!! 🧚 no cap, you're now fully qualified to free a glyph list. go forth, call PS_free_glyph_list, leak nothing, live your best life. πŸ’œ

signing off from the PS_FREE_GLYPH_LIST(3) page in the Library Functions Manual β€” mwah, bye bestie!! πŸŽ€βœ¨πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from