aboutsummaryrefslogtreecommitdiff
path: root/docs/curl_easy_setopt.3
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-22 06:35:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-22 06:35:19 +0000
commit5193894603f0e0310abd562bd483b07ce42944d4 (patch)
tree8572eb845b7a84a3ae86a79a11bb1f0e03ba7cd6 /docs/curl_easy_setopt.3
parent29b76a52fb1a88655efa7b2b493e3660f7e540b9 (diff)
rephrased the WRITEFUNCTION description a bit
Diffstat (limited to 'docs/curl_easy_setopt.3')
-rw-r--r--docs/curl_easy_setopt.35
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/curl_easy_setopt.3 b/docs/curl_easy_setopt.3
index 579c564f9..a18e62df5 100644
--- a/docs/curl_easy_setopt.3
+++ b/docs/curl_easy_setopt.3
@@ -52,8 +52,9 @@ function( void *ptr, size_t size, size_t nmemb, void *stream);\fP This
function gets called by libcurl as soon as there is data available to pass
available that needs to be saved. The size of the data pointed to by \fIptr\fP
is \fIsize\fP multiplied with \fInmemb\fP. Return the number of bytes
-actually written or return -1 to signal error to the library (it will cause it
-to abort the transfer with \fICURLE_WRITE_ERROR\fP).
+actually taken care of. If that amount differs from the amount passed to your
+function, it'll signal an error to the library and it will abort the transfer
+and return \fICURLE_WRITE_ERROR\fP.
Set the \fIstream\fP argument with the \fBCURLOPT_FILE\fP option.