mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
CURLOPT_FNMATCH_DATA.3: modified example to avoid fcpp issues
This commit is contained in:
parent
4600362a5a
commit
28baf380fa
@ -50,7 +50,7 @@ static int my_fnmatch(void *clientp,
|
||||
|
||||
{
|
||||
struct local_stuff local_data;
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.example.com/*txt");
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.example.com/file*");
|
||||
curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, 1L);
|
||||
curl_easy_setopt(curl, CURLOPT_FNMATCH_FUNCTION, my_fnmatch);
|
||||
curl_easy_setopt(curl, CURLOPT_FNMATCH_DATA, &local_data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user