5 \___|\___/|_| \_\_____|
7 Source Code Functions Apps Might Use
8 ====================================
10 The libcurl source code offers a few functions by source only. They are not
11 part of the official libcurl API, but the source files might be useful for
12 others so apps can optionally compile/build with these sources to gain
15 We provide them through a single header file for easy access for apps:
20 A macro that converts a string containing a number to a curl_off_t number.
21 This might use the curlx_strtoll() function which is provided as source
22 code in strtoofft.c. Note that the function is only provided if no
23 strtoll() (or equivalent) function exist on your platform. If curl_off_t
24 is only a 32 bit number on your platform, this macro uses strtol().
28 returns a struct timeval for the current time.
32 returns the difference between two timeval structs, in number of
37 returns the same as curlx_tvdiff but with full usec resolution (as a
43 Several functions will be removed from the public curl_ name space in a
44 future libcurl release. They will then only become available as curlx_
45 functions instead. To make the transition easier, we already today provide
46 these functions with the curlx_ prefix to allow sources to get built properly
47 with the new function names. The functions this concerns are: