PCRE2_COMP...NTEXT_COPY(3)

πŸ’… PCRE2_COMP...NTEXT_COPY(3) πŸ’…

okay so bestie, this page is straight out of the Library Functions Manual β€” yes, the manual name is folded in right here β€” and it’s serving PCRE2 realness. Grab your iced coffee πŸ“, because we’re talking about pcre2_compile_context_copy, and it’s honestly iconic.

πŸ’– NAME πŸ’–

PCRE2 - Perl-compatible regular expressions (revised API)

πŸŽ€ SYNOPSIS πŸŽ€

#include <pcre2.h>

pcre2_compile_context *pcre2_compile_context_copy(
  pcre2_compile_context *ccontext);

🌸 DESCRIPTION 🌸

okay so this function makes a new copy of a compile context, and it uses the memory allocation function that was used for the original context. The result is NULL if the memory cannot be obtained β€” and yes, that’s the whole mood. 😭

ngl, if you want the full lore, there’s a complete description of the PCRE2 native API in the pcre2api page, and a description of the POSIX API in the pcre2posix page. iykyk ✨


xoxo, your favorite manpage bestie πŸ’– β€” source/version vibes: PCRE2 10.47, dated 25 October 2014. 🫢

πŸ“¦ where this page comes from