CURLOPT_WRITEFUNCTION description corrected

This commit is contained in:
Daniel Stenberg 2001-10-10 13:11:24 +00:00
parent f2a25966cf
commit 65b9c0d44d
1 changed files with 7 additions and 7 deletions

View File

@ -51,13 +51,13 @@ NOTE: If you're using libcurl as a win32 DLL, you MUST use the
\fICURLOPT_WRITEFUNCTION\fP if you set this option. \fICURLOPT_WRITEFUNCTION\fP if you set this option.
.TP .TP
.B CURLOPT_WRITEFUNCTION .B CURLOPT_WRITEFUNCTION
Function pointer that should match the following prototype: Function pointer that should match the following prototype: \fBsize_t
.BI "size_t function( void *ptr, size_t size, size_t nmemb, void *stream);" function( void *ptr, size_t size, size_t nmemb, void *stream);\fP This
This function gets called by libcurl as soon as there is received data that function gets called by libcurl as soon as there is received data that needs
needs to be written down. The size of the data pointed to by \fIptr\fP is to be written down. The size of the data pointed to by \fIptr\fP is \fIsize\fP
\fIsize\fP multiplied with \fInmemb\fP. Return the number of bytes actually multiplied with \fInmemb\fP. Return the number of bytes actually written or
written or return -1 to signal error to the library (it will cause it to abort return -1 to signal error to the library (it will cause it to abort the
the transfer with CURLE_WRITE_ERROR). transfer with CURLE_WRITE_ERROR).
Set the \fIstream\fP argument with the \fBCURLOPT_FILE\fP option. Set the \fIstream\fP argument with the \fBCURLOPT_FILE\fP option.
.TP .TP