Re: return type of callback functions
Date: Mon, 6 Apr 2009 20:29:38 +0200 (CEST)
On Thu, 2 Apr 2009, centrio_at_gmail.com wrote:
> libcurl doc says "The callback function must return the number of bytes
> actually taken care of, or return -1 to signal error to the library".
Right, but in reality anything that isn't the same size passed in will signal
an error. The docs should be fixed to better reflect reality... and it
shouldn't recommend -1 for a function that returns unsigned.
-- / daniel.haxx.seReceived on 2009-04-06