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: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Fri, 6 Nov 2009 16:25:45 +0800

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se
> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of ื๓าใ
> Sent: Friday, November 06, 2009 4:17 PM
> To: curl-library
> Subject: [mem curl]
>
> Hi
>
> now i am vague with memery!
>
> if i use curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, pmem)
>
> after curl_easy_perform implemetation, pmem will point
> to some memery ?

Usually, CURLOPT_WRITEDATA is associated with a file pointer (FIle *), which is obtained from fopen().
 
> and now ,what my question is that, how the memery was
> malloced? by malloc or realloc or other functions?
>
> besides, which function should i invoke to free the memery?

You just need to remember to flose() the file ptr after using it.

Regards,
Xu Qiang
-------------------------------------------------------------------
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