cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: [mem curl]

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 6 Nov 2009 10:11:04 +0100 (CET)

On Fri, 6 Nov 2009, ื๓าใ wrote:

> if i use curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, pmem)
>
> after curl_easy_perform implemetation, pmem will point to some memery?

You point it to whatever you like.

> and now ,what my question is that, how the memery was malloced? by malloc or
> realloc or other functions?

That's up to you and your application to decide!

> besides, which function should i invoke to free the memery?

That then depends on how you allocated it - if you did allocate it.

CURLOPT_WRITEDATA points to whatever data you want to point to. libcurl
doesn't touch it in any way.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-06

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET