cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_INFILESIZE and padded files

From: Peter Seebach <seebs_at_plethora.net>
Date: Wed, 17 Jan 2007 16:14:34 -0600

In message <20070117204212.GA30257_at_coneharvesters.com>, Dan Fandrich writes:
>On Wed, Jan 17, 2007 at 06:23:55AM -0600, Peter Seebach wrote:
>> The read callback has to be able to, from the "stream" pointer, figure
>> out where it is in the buffer, and it needs to somehow find out from the
>> rest of my code what the size limit is. So, either I make the stream

>You can use ftell(3) to tell where you are from the stream itself. Finding
>the maximum is a bit trickier.

Well, yes, but if I'm writing my own read callback, I might not be using
stdio...

-s
Received on 2007-01-18