curl-library
Re: curlopt_seekfunction
Date: Thu, 29 Sep 2016 20:00:09 +0200
On Wed, Sep 28, 2016 at 02:17:00PM -0400, Biju N wrote:
> Hello There,
> If you have defined and used curlopt_seekfunction, could you please share a
> sample. Currently I am trying to pass the values from the call back to "fseek"
> by casting the void* and offset without success.
>
> void* is cast to file* and offset to int. Not sure whether that is the correct
> approach. Any help with this is much appreciated.
Can you show us the code snippet doing this? As long as you set the FILE* with
CURLOPT_SEEKDATA, and as long as your fseek() takes an int (it's probably a
long) your approach sounds fine.
>>> Dan
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-09-29