curl / Mailing Lists / curl-library / Single Mail


getinfo: return sizes as curl_off_t

From: Daniel Stenberg <>
Date: Fri, 16 Jun 2017 12:12:35 +0200 (CEST)

Hi friends!

I'm working on a patch[*] that brings a set of new options to
curl_easy_getinfo() to allow applications to extract size and transfer speed
operations using curl_off_t types instead of of doubles.

I'd like to see this done primarily for these reasons:

  - curl_off_t is more "natural" and less surprising for this kind of data
  - floating point is inexact and annoying for comparisons
  - curl_off_t can actually hold larger sizes

(Internally the data is already kept using curl_off_t)

Any thoughts, questions or comments on this?

[*] =

Received on 2017-06-16