cURL / Mailing Lists / curl-library / Single Mail


Basic Question on read callback ()?

From: Ramprakash Jelari thinakaran <>
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.

Received on 2008-01-30