Name
easy:SetOpt_FNMatch_Function -- wildcard matching function callback
Synopsis
easy:SetOpt_FNMatch_Function(fnmatch_callback[, userdata])
Function
Pass a callback function, which is used for wildcard matching. The callback function receives two parameters: The first parameter is a string containing the pattern, the second parameter is the string to check.

If you pass the optional userdata argument, the value you pass in userdata will be passed to your callback function as a third parameter. The userdata parameter can be of any type.

Return #CURL_FNMATCHFUNC_MATCH if pattern matches the string, #CURL_FNMATCHFUNC_NOMATCH if not or #CURL_FNMATCHFUNC_FAIL if an error occurred.

Inputs
fnmatch_callback
input value
userdata
optional: user data to pass to callback function

Show TOC