![]() |
![]()
| ![]() |
![]()
NAMECURLOPT_FNMATCH_FUNCTION - wildcard match callback SYNOPSIS#include <curl/curl.h> int fnmatch_callback(void *ptr, DESCRIPTIONPass a pointer to your callback function, which should match the prototype shown above. This callback is used for wildcard matching. Return CURL_FNMATCHFUNC_MATCH if pattern matches the string, CURL_FNMATCHFUNC_NOMATCH if not or CURL_FNMATCHFUNC_FAIL if an error occurred. DEFAULTNULL == an internal function for wildcard matching. PROTOCOLSThis functionality affects ftp only EXAMPLEextern int string_match(const char *s1, const char *s2); struct local_stuff { AVAILABILITYAdded in curl 7.21.0 RETURN VALUEcurl_easy_setopt(3) returns a CURLcode indicating success or error. CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). SEE ALSOCURLOPT_DEBUGFUNCTION(3), CURLOPT_FNMATCH_DATA(3), CURLOPT_WILDCARDMATCH(3)
|