cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: fseek() and large files

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 7 Mar 2005 11:03:53 -0800

On Mon, Mar 07, 2005 at 10:30:49AM -0800, Dan Fandrich wrote:
> I'll change it back to the old way if ftruncate is available and use the
> fsetpos method as a fallback if not.

It turns out fsetpos can't seek to arbitrary file locations, so I changed
the falback method to use fseek, with the understanding that you need
ftruncate to have large file support.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2005-03-07