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: RE: [mem curl]

From: ื๓าใ <zuoy_at_neusoft.com>
Date: Sat, 07 Nov 2009 13:57:09 +0800

Hi:

Now i get some code written by someone else.

there are two sentences in the xcap client module:

        curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_function);

        curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, &buff);

  throughout the function, i can not find some sentens to allocate memery for buff.

  more strange, i find author call function to free buff.

 So what my question is that do we need to allocate memery for buff by ouerselves or curl has allocate by itself?

Thanks
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET