]> granicus.if.org Git - curl/commitdiff
rephrased the WRITEFUNCTION description a bit
authorDaniel Stenberg <daniel@haxx.se>
Mon, 22 Oct 2001 06:35:19 +0000 (06:35 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 22 Oct 2001 06:35:19 +0000 (06:35 +0000)
docs/curl_easy_setopt.3

index 579c564f950344e68f16b0b1e9172f2e9a3a40fd..a18e62df58f9ff3f5aa3aa48dc54e1c99fc72313 100644 (file)
@@ -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.