cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Basic help.

From: Rogues <roguestd_at_gmail.com>
Date: Sun, 29 Apr 2012 13:11:35 +0530

On Sunday 29 April 2012 08:09 AM, Alan Wolfe wrote:
> specifically...
>
> size is the size of one data item, nmemb is the number of data items.
>
> all you really need to worry about is (size * nmemb)
>
> That's how many bytes total there are.
>
> Hope that helps!
>
> On Sat, Apr 28, 2012 at 7:10 PM, Jim Lloyd <jim_at_silvertailsystems.com
> <mailto:jim_at_silvertailsystems.com>> wrote:
>
> 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
> <mailto: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
> Etiquette: 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
>
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
Yeah thanks, I'm using this with C++.

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