curl-library
Re: Saving data received from http server
From: arnuld uttre <arnuld.mizong_at_gmail.com>
Date: Fri, 12 Nov 2010 18:47:13 +0530
Date: Fri, 12 Nov 2010 18:47:13 +0530
> On Fri, Nov 12, 2010 at 6:32 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 12 Nov 2010, arnuld uttre wrote:
> CURLOPT_WRITEFUNCTION sets the function that libcurl will call.
> CURLOPT_WRITEDATA is used to set the pointer that the function gets in its
> fourth argument. They're both needed to get this right.
Got it right :)
> Who can do it in several different ways, getinmemory.c is just an example
> and you are free and encouraged to change every tiny detail you think should
> be different.
>
> However, memcpy() is likely to be MUCH faster than any for() loop that would
> copy the same memory in a slower manner...
Okay, will use memcpy() for now.
-- http://uttre.wordpress.com/2008/05/14/the-lost-love-of-mine/ ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-11-12