doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
first.c
Go to the documentation of this file.
1 #include "test.h"
2 
3 #ifdef CURLDEBUG
4 /* provide a proto for this debug function */
5 extern void curl_memdebug(const char *);
6 #endif
7 
8 /* test is provided in the test code file */
9 int test(char *url);
10 
11 char *arg2=NULL;
12 
13 int main(int argc, char **argv)
14 {
15  char *URL;
16  if(argc< 2 ) {
17  fprintf(stderr, "Pass URL as argument please\n");
18  return 1;
19  }
20  if(argc>2)
21  arg2=argv[2];
22 
23  URL = argv[1]; /* provide this to the rest */
24 
25  fprintf(stderr, "URL: %s\n", URL);
26 
27 #ifdef CURLDEBUG
28  curl_memdebug("memdump");
29 #endif
30  return test(URL);
31 }
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2
Definition: glext.h:5286
int test(char *url)
Definition: lib500.c:3
void curl_memdebug(void)
Definition: memdebug.c:286
#define NULL
Definition: Lib.h:88
int main(int argc, char **argv)
Definition: first.c:13