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 <[email protected]>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 <[email protected]> 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 >
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
