PCRE_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 π π
π¦ where this page comes from
- alpine 3.22: pcre-doc 8.45-r4 Β· BSD-3-Clause
- alpine 3.23: pcre-doc 8.45-r4 Β· BSD-3-Clause
- alpine 3.24: pcre-doc 8.45-r4 Β· BSD-3-Clause
- arch rolling: pcre 8.45-5 Β· BSD
- centos-stream 9: pcre-devel 8.44-4.el9 Β· BSD
- centos-stream 9: pcre-devel 8.44-4.el9 Β· BSD
- debian bookworm: libpcre3-dev 2:8.39-15
- fedora 43: pcre-devel 8.45-1.fc43.9 Β· BSD-3-Clause
- fedora 43: pcre-devel 8.45-1.fc43.9 Β· BSD-3-Clause
- fedora 44: pcre-devel 8.45-1.fc43.9 Β· BSD-3-Clause
- fedora 44: pcre-devel 8.45-1.fc43.9 Β· BSD-3-Clause
- nixos 26.05: pcre 8.45
- nixos 26.05: pcre-cpp 8.45
- opensuse-leap 16.0: pcre-devel 8.45-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: pcre-devel 8.45-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: pcre-devel 8.45-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: pcre-devel 8.45-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: libpcre3-dev 2:8.39-13build5
- ubuntu jammy: libpcre3-dev 2:8.39-13ubuntu0.22.04.1
- ubuntu noble: libpcre3-dev 2:8.39-15build1
- ubuntu questing: libpcre3-dev 2:8.39-15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms