1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

cleaned up

This commit is contained in:
Daniel Stenberg 2003-11-19 08:20:13 +00:00
parent 4d28012468
commit 79e4aee185

View File

@ -10,26 +10,14 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <curl/curl.h> #include <curl/curl.h>
/* to make this work under windows, use the win32-functions from the
docs/examples/win32socket.c file as well */
/* This example REQUIRES libcurl 7.7 or later */
#if (LIBCURL_VERSION_NUM < 0x070700)
#error Too old libcurl version, upgrade or stay away.
#endif
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
CURL *curl; CURL *curl;
CURLcode res; CURLcode res;
#ifdef MALLOCDEBUG curl_global_init(CURL_GLOBAL_ALL);
/* this sends all memory debug messages to a specified logfile */
curl_memdebug("memdump");
#endif
curl = curl_easy_init(); curl = curl_easy_init();
if(curl) { if(curl) {