CURLOPT_FTP_CREATE_MISSING_DIRS.md drop cast, add note to history

This commit is contained in:
Viktor Szakats 2025-08-01 13:25:56 +02:00
parent b71542e91f
commit d4f10b54ea
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -67,7 +67,7 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_URL,
"ftp://example.com/non-existing/new.txt");
curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS,
(long)CURLFTP_CREATE_DIR_RETRY);
CURLFTP_CREATE_DIR_RETRY);
res = curl_easy_perform(curl);
@ -76,6 +76,11 @@ int main(void)
}
~~~
# HISTORY
CURLFTP_CREATE_\* enums became `long` types in 8.16.0, prior to this version
a `long` cast is necessary when passing to curl_easy_setopt(3).
# %AVAILABILITY%
# RETURN VALUE