cURL / Mailing Lists / curl-library / Single Mail


Re: Doesn't fwrite() return the number of objects written, not the number of bytes?

From: Mohun Biswas <>
Date: Thu, 30 Jul 2009 21:21:44 -0400

Jonathan Wallace wrote:
> Well, still. Even thought it was standardized, didn't mean very many
> people used it. As you said, 2GB files were almost nonexistant. Servers
> and databases may have had them, but not an average user. Probably
> should be upgraded to use a 64 bit integer.

First, this list has a pretty strong dislike of top-posting, so it's
best not to.

Second, libcurl actually has had a great deal of effort put into
largefile-awareness and recent versions should have no trouble with any
file smaller than 2**64 bytes. It's not quite as simple as "upgrading it
to use a 64-bit integer" but no matter, it's handled.

Third, as Michael Marek pointed out, libcurl works a buffer-at-a-time
and the buffer size will never approach 2GB, so that's just not a problem.

Received on 2009-07-31