~ubuntu-branches/ubuntu/dapper/curl/dapper-updates

« back to all changes in this revision

Viewing changes to lib/README.curlx

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
$Id: README.curlx,v 1.1 2004/04/07 07:30:40 bagder Exp $
 
2
                                  _   _ ____  _     
 
3
                              ___| | | |  _ \| |    
 
4
                             / __| | | | |_) | |    
 
5
                            | (__| |_| |  _ <| |___ 
 
6
                             \___|\___/|_| \_\_____|
 
7
 
 
8
                     Source Code Functions Apps Might Use
 
9
                     ====================================
 
10
 
 
11
The libcurl source code offers a few functions by source only. They are not
 
12
part of the official libcurl API, but the source files might be useful for
 
13
others so apps can optionally compile/build with these sources to gain
 
14
additional functions.
 
15
 
 
16
 
 
17
strtoofft.[ch]
 
18
==============
 
19
 
 
20
 curlx_strtoofft()
 
21
 
 
22
   A macro that converts a string containing a number to a curl_off_t number.
 
23
   This might use the curlx_strtoll() function which is provided as source
 
24
   code in strtoofft.c. Note that the function is only provided if no
 
25
   strtoll() (or equivalent) function exist on your platform. If curl_off_t
 
26
   is only a 32 bit number on your platform, this macro uses strtol().
 
27
 
 
28
timeval.[ch]
 
29
============
 
30
 
 
31
 Provides a 'struct timeval' for platforms that don't have one already, and
 
32
 includes the proper include files for those that have one. Using this will
 
33
 make the output require the 'winmm' lib on Windows (unless WITHOUT_MM_LIB
 
34
 is defined at compile-time).
 
35
 
 
36
 curlx_tvnow()
 
37
 
 
38
   returns a struct timeval for the current time.
 
39
 
 
40
 curlx_tvdiff()
 
41
 
 
42
   returns the difference between two timeval structs, in number of
 
43
   milliseconds.