curl-library
returning -1 to CURLOPT_WRITEFUNCTION
From: jonatan <jonatan_at_cyberdude.com>
Date: Sat, 13 Oct 2001 10:56:13 +0200
Date: Sat, 13 Oct 2001 10:56:13 +0200
the docs say to return -1 to the function set with
CURLOPT_WRITEFUNCTION to signal error. but that function is defined
as returning size_t, which is unsigned. how are you supposed to
return -1 when you can only return an unsigned value?
maybe the return type of CURLOPT_WRITEFUNCTION should be ssize_t or
ptrdiff_t instead of size_t.
Received on 2001-10-13