PCRE_FREE_SUBSTRING(3)

πŸ’– PCRE_FREE_SUBSTRING(3) πŸ’–

okay so bestie, this is the PCRE_FREE_SUBSTRING(3) page from the Library Functions Manual, and it's giving "how do I free that substring I got earlier?" energy. no cap, it's short but important. Let's get into it. πŸ¦‹


✨ NAME ✨

PCRE - Perl-compatible regular expressions. periodt. πŸ’…


🌸 SYNOPSIS 🌸

#include <pcre.h>

void pcre_free_substring(const char *stringptr);

void pcre16_free_substring(PCRE_SPTR16 stringptr);

void pcre32_free_substring(PCRE_SPTR32 stringptr);

πŸŽ€ DESCRIPTION πŸŽ€

This function is literally a convenience function, bestie. It frees the store that you got from a previous call to pcre[16|32]_get_substring() or pcre[16|32]_get_named_substring(). That's the whole vibe.

Its only argument is a pointer to the string. one arg, no drama, we love that. πŸ’–

There's a complete description of the PCRE native API in the pcreapi page, and a description of the POSIX API in the pcreposix page. go read those if you need the full tea. 🫢


okurrr, that's the whole page! it's from PCRE 8.30, dated 24 June 2012, and it's the PCRE_FREE_SUBSTRING(3) manual. mwah, bye bestie! πŸ’‹βœ¨