cURL / Mailing Lists / curl-library / Single Mail


Re: return type of callback functions

From: Daniel Stenberg <>
Date: Mon, 6 Apr 2009 20:29:38 +0200 (CEST)

On Thu, 2 Apr 2009, 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.

Received on 2009-04-06