cURL / Mailing Lists / curl-library / Single Mail

curl-library

Basic Question on read callback ()?

From: Ramprakash Jelari thinakaran <jelari_at_gmail.com>
Date: Wed, 30 Jan 2008 12:19:39 +0530

curl_easy_setopt(easyhandle, CURLOPT_READFUNCTION, read_function);

in the read_function (), the first parameter is void *ptr, do we have to
allocate the heap memory for this ptr explictily?.. i m trying to copy 1MB
of data for each
read, from total of 2GB file.

Your help is really appreciatable.

Thanks.
Received on 2008-01-30