1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

CURLOPT_FNMATCH_DATA.3: modified example to avoid fcpp issues

This commit is contained in:
Daniel Stenberg 2017-05-31 13:30:04 +02:00
parent 4600362a5a
commit 28baf380fa

View File

@ -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);