1PCRE2_GENERAL_CONTEXT_CREATEL(i3b)rary Functions ManPuCaRlE2_GENERAL_CONTEXT_CREATE(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_create(
13 void *(*private_malloc)(PCRE2_SIZE, void *),
14 void (*private_free)(void *, void *), void *memory_data);
15
17
18 This function creates and initializes a general context. The arguments
19 define custom memory management functions and a data value that is
20 passed to them when they are called. The private_malloc() function is
21 used to get memory for the context. If either of the first two argu‐
22 ments is NULL, the system memory management function is used. The
23 result is NULL if no memory could be obtained.
24
25 There is a complete description of the PCRE2 native API in the pcre2api
26 page and a description of the POSIX API in the pcre2posix page.
27
28
29
30PCRE2 10.00 22 October 2014PCRE2_GENERAL_CONTEXT_CREATE(3)