mirror of
https://github.com/curl/curl.git
synced 2026-07-23 16:27:17 +03:00
docs/examples: adjust prototypes for CURLOPT_READFUNCTION
The type of the buffer in curl_read_callback is 'char *', not 'void *'. Signed-off-by: Olaf Hering <olaf@aepfle.de> Closes #6392
This commit is contained in:
parent
0a5b8af777
commit
f2ed79d8ee
36 changed files with 39 additions and 39 deletions
|
|
@ -48,7 +48,7 @@
|
|||
DLL, you MUST also provide a read callback with CURLOPT_READFUNCTION.
|
||||
Failing to do so will give you a crash since a DLL may not use the
|
||||
variable's memory when passed in to it from an app like this. */
|
||||
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||
static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *stream)
|
||||
{
|
||||
curl_off_t nread;
|
||||
/* in real-world cases, this would probably get this data differently
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue