Sponsors:
Haxx
|
cURL Mailing List Monthly Index Single Mail
curl-library Archives
> -----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.
|