~ubuntu-branches/ubuntu/dapper/curl/dapper-security

« back to all changes in this revision

Viewing changes to docs/examples/persistant.c

  • 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:
5
5
 *                            | (__| |_| |  _ <| |___ 
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * $Id: persistant.c,v 1.1 2001/03/05 16:56:10 bagder Exp $
 
8
 * $Id: persistant.c,v 1.2 2003/11/19 08:20:13 bagder Exp $
9
9
 */
10
10
 
11
11
#include <stdio.h>
12
12
#include <unistd.h>
13
 
 
14
13
#include <curl/curl.h>
15
14
 
16
 
/* to make this work under windows, use the win32-functions from the
17
 
   docs/examples/win32socket.c file as well */
18
 
 
19
 
/* This example REQUIRES libcurl 7.7 or later */
20
 
#if (LIBCURL_VERSION_NUM < 0x070700)
21
 
#error Too old libcurl version, upgrade or stay away.
22
 
#endif
23
 
 
24
15
int main(int argc, char **argv)
25
16
{
26
17
  CURL *curl;
27
18
  CURLcode res;
28
19
 
29
 
#ifdef MALLOCDEBUG
30
 
  /* this sends all memory debug messages to a specified logfile */
31
 
  curl_memdebug("memdump");
32
 
#endif
 
20
  curl_global_init(CURL_GLOBAL_ALL);
33
21
 
34
22
  curl = curl_easy_init();
35
23
  if(curl) {