1PCRE2_GENERAL_CONTEXT_COPY(3L)ibrary Functions ManuaPlCRE2_GENERAL_CONTEXT_COPY(3)
2
3
4
6 PCRE2 - Perl-compatible regular expressions (revised API)
7
9
10 #include <pcre2.h>
11
12 pcre2_general_context *pcre2_general_context_copy(
13 pcre2_general_context *gcontext);
14
16
17 This function makes a new copy of a general context, using the memory
18 allocation functions in the context, if set, to get the necessary mem‐
19 ory. Otherwise malloc() is used. The result is NULL if the memory can‐
20 not be obtained.
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.00 22 October 2014 PCRE2_GENERAL_CONTEXT_COPY(3)