1PCRE2_CODE_FREE(3) Library Functions Manual PCRE2_CODE_FREE(3)
2
3
4
6 PCRE2 - Perl-compatible regular expressions (revised API)
7
9
10 #include <pcre2.h>
11
12 void pcre2_code_free(pcre2_code *code);
13
15
16 If code is NULL, this function does nothing. Otherwise, code must point
17 to a compiled pattern. This function frees its memory, including any
18 memory used by the JIT compiler. If the compiled pattern was created by
19 a call to pcre2_code_copy_with_tables(), the memory for the character
20 tables is also freed.
21
22 There is a complete description of the PCRE2 native API in the pcre2api
23 page and a description of the POSIX API in the pcre2posix page.
24
25
26
27PCRE2 10.32 28 June 2018 PCRE2_CODE_FREE(3)