cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Basic help.

From: Jim Lloyd <jim_at_silvertailsystems.com>
Date: Sat, 28 Apr 2012 19:10:38 -0700

Yes. The function signature is the same signature as the stdio fwrite
function, allowing you to use fwrite as the callback function if all you
want to do is capture the response to a file.

On Sat, Apr 28, 2012 at 2:43 AM, Rogues <roguestd_at_gmail.com> wrote:

> Quick question, in this function size_t write_data(char *ptr, size_t size,
> size_t nmemb, void *userdata), what does size and nmemb represent? nmemb
> probably means number of members, and does size refer to the size of each
> member?
>
> Thanks,
>
> Rogues
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-29