CURLOPT_FNMATCH_FUNCTION.3: also modified example to avoid fcpp issues
authorDaniel Stenberg <daniel@haxx.se>
Wed, 31 May 2017 11:36:51 +0000 (13:36 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 31 May 2017 11:36:51 +0000 (13:36 +0200)
docs/libcurl/opts/CURLOPT_FNMATCH_FUNCTION.3

index 4ebdedfb05162cba0d9b096706a7139558a0cbfa..7a79ad8a76c566c87f708b0e45bed49cff83f0c6 100644 (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);