PCRE16_FREE_SUBSTRING_LIST(3)

πŸ’– PCRE_FREE_SUBSTRING_LIST πŸ’–

okay bestie, so this is a page from the Library Functions Manual, and it's all about PCRE β€” that's Perl-compatible regular expressions, no cap ✨


🌸 NAME 🌸

PCRE β€” Perl-compatible regular expressions πŸ¦‹


✨ SYNOPSIS ✨

#include <pcre.h>

void pcre_free_substring_list(const char **stringptr);

void pcre16_free_substring_list(PCRE_SPTR16 *stringptr);

void pcre32_free_substring_list(PCRE_SPTR32 *stringptr);

πŸŽ€ DESCRIPTION πŸŽ€

So here's the tea β˜• β€” this is a convenience function, and its whole entire job is freeing the store that you got from a previous call to pcre[16|32]_get_substring_list(). Like, you grabbed the goods earlier, and now you're the one who has to take the trash out. πŸ’…

Its only argument is a pointer to the list of string pointers. That's it. That's the whole vibe. No extra params, no sneaky hidden options, nothing. πŸ™ˆ

If you want the full lore, there's a complete description of the PCRE native API over on the pcreapi page, and a description of the POSIX API on the pcreposix page. Go read those, iykyk πŸ“š

not me writing a whole manual page about freeing memory but honestly? freeing memory is self care πŸ’–

that's a wrap, bestie! 🫢 this icon of a page comes to you from PCRE 8.30, dated 24 June 2012 β€” yeah she's vintage, and she still ate πŸ’…πŸ‘‘