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:
parent
28baf380fa
commit
f072393feb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user