cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: return type of callback functions

From: Daniel Stenberg <daniel_at_haxx.se>
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.se
Received on 2009-04-06