blob: cb48e143e8e7c21b06443133de50dcdcaa2551c2 [file] [log] [blame]
Elliott Hughes9bc971b2018-07-27 13:23:14 -07001.TH PCRE2_SET_CALLOUT 3 "21 March 2017" "PCRE2 10.30"
Janis Danisevskis112c9cc2016-03-31 13:35:25 +01002.SH NAME
3PCRE2 - Perl-compatible regular expressions (revised API)
4.SH SYNOPSIS
5.rs
6.sp
7.B #include <pcre2.h>
8.PP
9.nf
10.B int pcre2_set_callout(pcre2_match_context *\fImcontext\fP,
11.B " int (*\fIcallout_function\fP)(pcre2_callout_block *),"
12.B " void *\fIcallout_data\fP);"
13.fi
14.
15.SH DESCRIPTION
16.rs
17.sp
18This function sets the callout fields in a match context (the first argument).
19The second argument specifies a callout function, and the third argument is an
Elliott Hughes9bc971b2018-07-27 13:23:14 -070020opaque data item that is passed to it. The result of this function is always
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010021zero.
22.P
23There is a complete description of the PCRE2 native API in the
24.\" HREF
25\fBpcre2api\fP
26.\"
27page and a description of the POSIX API in the
28.\" HREF
29\fBpcre2posix\fP
30.\"
31page.