curl-library
Re: CURLOPT_READFUNCTION
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 19 Sep 2011 14:19:46 +0200 (CEST)
Date: Mon, 19 Sep 2011 14:19:46 +0200 (CEST)
On Mon, 19 Sep 2011, Oleksiy wrote:
> from manual about - ... Function pointer that should match the
> following prototype: size_t function( void *ptr, size_t size, size_t
> nmemb, void *userdata);
>
> How can I set size and nmemb parameters? I'm writing in C
You don't set those. libcurl sets those to the maximum size of the buffer that
you can provide in that call, and you return as much as possible and tell
libcurl with the return code how much you filled in.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-09-19