PCRE2_GENERAL_CONTEXT_CREATEL(i3b)rary Functions ManPuCaRlE2_GENERAL_CONTEXT_CREATE(3) NNAAMMEE PCRE2 - Perl-compatible regular expressions (revised API) SSYYNNOOPPSSIISS ##iinncclluuddee <
> ppccrree22__ggeenneerraall__ccoonntteexxtt **ppccrree22__ggeenneerraall__ccoonntteexxtt__ccrreeaattee(( vvooiidd **((**_p_r_i_v_a_t_e___m_a_l_l_o_c))((PPCCRREE22__SSIIZZEE,, vvooiidd **)),, vvooiidd ((**_p_r_i_v_a_t_e___f_r_e_e))((vvooiidd **,, vvooiidd **)),, vvooiidd **_m_e_m_o_r_y___d_a_t_a));; DDEESSCCRRIIPPTTIIOONN This function creates and initializes a general context. The arguments define custom memory management functions and a data value that is passed to them when they are called. The pprriivvaattee__mmaalllloocc(()) function is used to get memory for the context. If either of the first two argu- ments is NULL, the system memory management function is used. The result is NULL if no memory could be obtained. There is a complete description of the PCRE2 native API in the ppccrree22aappii page and a description of the POSIX API in the ppccrree22ppoossiixx page. PCRE2 10.00 22 October 2014PCRE2_GENERAL_CONTEXT_CREATE(3)