Re: Basic help.

2012-04-29 Thread Rogues
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

Re: Basic help.

2012-04-28 Thread Alan Wolfe
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 wrote: > Yes. The function signature is the same signat

Re: Basic help.

2012-04-28 Thread Jim Lloyd
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 wrote: > Quick question, in this function size_t write_data(char *p

Basic help.

2012-04-28 Thread Rogues
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