cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Error in ftpget.c example?

From: Jason Pump <jpump_at_mindspring.com>
Date: Tue, 19 Sep 2006 14:38:52 -0700

I think the pedantic fix would be to move the open out of the read
function into main.

Juan Manuel Lopez Baio wrote:
> On 9/19/06, Dan Fandrich <dan_at_coneharvesters.com> wrote:
>>
>> There's no way for my_fwrite to know when the file is finished
>> downloading,
>> so it can't know when to close it. It could open and close it each
>> time,
>> but that would be really inefficient.
>
> yeah! I just realized that after a while of perplex staring at the
> screen wondering why I was downloading bogus files, cut in size
> (except for the small ones (<=16K))...
> duh!
> I guess I'm running low on coffe :p
>
> Thanks,
>
> Juan
>
> (actually, we're using mate instead of coffe, but you need _a lot_
> more of it to get the same effect... ;)
>
>
>
>> >>> Dan
>
Received on 2006-09-19