PCRE2_GENE...NTEXT_COPY(3)

πŸ’– NAME πŸ’–

okay so bestie, this page is from the PCRE2 manual β€” the NAME line is PCRE2 - Perl-compatible regular expressions (revised API) β€” and today’s main character is pcre2_general_context_copy(3).


✨ SYNOPSIS ✨

#include <pcre2.h>

pcre2_general_context *pcre2_general_context_copy(
  pcre2_general_context *gcontext);

πŸŽ€ DESCRIPTION πŸŽ€

This function makes a new copy of a general context, bestie. It uses the memory allocation functions in the context, if set, to get the necessary memory. Otherwise malloc() is used. The result is NULL if the memory cannot be obtained. no cap, that’s the whole vibe check πŸ’…

There is a complete description of the PCRE2 native API in the pcre2api page and a description of the POSIX API in the pcre2posix page. iykyk πŸ¦‹


mwah πŸ’‹ this has been PCRE2 10.47, dated 25 October 2014, bestie β€” now go copy that general context like the icon you are 🫢

πŸ“¦ where this page comes from