Skip to content
Snippets Groups Projects
Commit 61a84abe authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

WRITEFUNCTION correction

parent 3d031000
No related branches found
No related tags found
No related merge requests found
......@@ -49,12 +49,12 @@ crashes.
.B CURLOPT_WRITEFUNCTION
Function pointer that should match the following prototype: \fBsize_t
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 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.
function gets called by libcurl as soon as there is data 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 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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment