strpattern_match_invoke_target()

Get the invocation target of an invoke associated with a pattern match.

Synopsis:

#include </strpattern.h>
 
const char* strpattern_match_invoke_target(const strpattern_match *match, int index, int *err)

Arguments:

match

The match containing the invoke whose invocation target is returned.

index

The index of the invoke associated with the match.

err

STRPATTERN_EOK if there is no error.

Library:

libstrpattern

Description:

This function gets the invocation target of an invoke associated with a pattern match and returns a NULL-terminated string with the name of the invocation target. An invoke means that it was found by a recognizer and a match was created for it. A recognizer is an email address, phone number, PIN, SMS, or URL.

Returns:

A NULL-terminated string with the name of the invocation target. NULL if no invocation target is set for the invoke or on error. Ownership is retained by the callee.