docs/libcurl: return value overhall

Unified, extended, clarified the return values for numerous functions

Closes #15899
This commit is contained in:
Daniel Stenberg 2025-01-02 15:43:12 +01:00
parent 41e5a116a1
commit 4501b7e28d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
38 changed files with 184 additions and 70 deletions

View file

@ -138,6 +138,9 @@ might end up having to cache 64 MB of data.
# RETURN VALUE
CURLE_OK (zero) means that the option was set properly, and a non-zero return
code means something wrong occurred after the new state was set. See the
libcurl-errors(3) man page for the full list with descriptions.
This function returns a CURLcode indicating success or error.
CURLE_OK (0) means everything was OK, non-zero means an error occurred, see
libcurl-errors(3). If CURLOPT_ERRORBUFFER(3) was set with curl_easy_setopt(3)
there can be an error message stored in the error buffer when non-zero is
returned.