mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
writefunction data is not zero terminated
This commit is contained in:
parent
a5dc4e32f2
commit
81f45ba92a
@ -70,10 +70,10 @@ 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 reveiced that needs
|
function gets called by libcurl as soon as there is data reveiced that needs
|
||||||
to be saved. The size of the data pointed to by \fIptr\fP is \fIsize\fP
|
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
|
multiplied with \fInmemb\fP, it will not be zero terminated. Return the number
|
||||||
of. If that amount differs from the amount passed to your function, it'll
|
of bytes actually taken care of. If that amount differs from the amount passed
|
||||||
signal an error to the library and it will abort the transfer and return
|
to your function, it'll signal an error to the library and it will abort the
|
||||||
\fICURLE_WRITE_ERROR\fP.
|
transfer and return \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