mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
WRITEFUNCTION correction
This commit is contained in:
parent
3d03100079
commit
61a84abe2a
@ -49,12 +49,12 @@ crashes.
|
|||||||
.B CURLOPT_WRITEFUNCTION
|
.B CURLOPT_WRITEFUNCTION
|
||||||
Function pointer that should match the following prototype: \fBsize_t
|
Function pointer that should match the following prototype: \fBsize_t
|
||||||
function( void *ptr, size_t size, size_t nmemb, void *stream);\fP This
|
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
|
function gets called by libcurl as soon as there is data available that needs
|
||||||
available that needs to be saved. The size of the data pointed to by \fIptr\fP
|
to be saved. The size of the data pointed to by \fIptr\fP is \fIsize\fP
|
||||||
is \fIsize\fP multiplied with \fInmemb\fP. Return the number of bytes
|
multiplied with \fInmemb\fP. Return the number of bytes actually taken care
|
||||||
actually taken care of. If that amount differs from the amount passed to your
|
of. If that amount differs from the amount passed to your function, it'll
|
||||||
function, it'll signal an error to the library and it will abort the transfer
|
signal an error to the library and it will abort the transfer and return
|
||||||
and return \fICURLE_WRITE_ERROR\fP.
|
\fICURLE_WRITE_ERROR\fP.
|
||||||
|
|
||||||
Set the \fIstream\fP argument with the \fBCURLOPT_FILE\fP option.
|
Set the \fIstream\fP argument with the \fBCURLOPT_FILE\fP option.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user