]> granicus.if.org Git - curl/commitdiff
CURLOPT_FNMATCH_DATA.3: modified example to avoid fcpp issues
authorDaniel Stenberg <daniel@haxx.se>
Wed, 31 May 2017 11:30:04 +0000 (13:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 31 May 2017 11:30:04 +0000 (13:30 +0200)
docs/libcurl/opts/CURLOPT_FNMATCH_DATA.3

index 6cf506ed03f9a6f53f8c33fef08ae876a1338575..88f3ba6625139ad7f6a94fba27dbbdecae598d67 100644 (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);