curl-library
Re: Documentation Issue: WRITEFUNCTION, HEADERFUNCTION, et all vs man fwrite(3)
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 9 Dec 2010 14:28:12 -0800
Date: Thu, 9 Dec 2010 14:28:12 -0800
On Thu, Dec 09, 2010 at 02:14:29PM -0800, John Utz wrote:
> So, based on the fwrite manpage, this function should be returning the value of
> nmemb, not size*nmemb as the curl manpages and sample code seem to suggest.
>
> It seems to me that both documents can not be correct. Am I misunderstanding
> something?
As long as size == 1, they're both correct :-) That's likely the most common
case, in fact, so common that the other cases were probably forgotten at
some point along the line.
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-09