1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

CURLOPT_FNMATCH_FUNCTION.3: also modified example to avoid fcpp issues

This commit is contained in:
Daniel Stenberg 2017-05-31 13:36:51 +02:00
parent 28baf380fa
commit f072393feb

View File

@ -60,7 +60,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);