mirror of
https://github.com/curl/curl.git
synced 2026-05-17 01:46:20 +03:00
CURLOPT_FNMATCH_DATA.3: modified example to avoid fcpp issues
This commit is contained in:
parent
4600362a5a
commit
28baf380fa
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue