Loading tests/libtest/first.c +5 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,8 @@ extern void curl_memdebug(const char *); /* test is provided in the test code file */ CURLcode test(char *url); char *arg2=NULL; int main(int argc, char **argv) { char *URL; Loading @@ -15,6 +17,9 @@ int main(int argc, char **argv) fprintf(stderr, "Pass URL as argument please\n"); return 1; } if(argc>2) arg2=argv[2]; URL = argv[1]; /* provide this to the rest */ fprintf(stderr, "URL: %s\n", URL); Loading tests/libtest/test.h +2 −0 Original line number Diff line number Diff line #include <curl.h> #include <stdio.h> extern char *arg2; /* set by first.c to the argv[2] or NULL */ Loading
tests/libtest/first.c +5 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,8 @@ extern void curl_memdebug(const char *); /* test is provided in the test code file */ CURLcode test(char *url); char *arg2=NULL; int main(int argc, char **argv) { char *URL; Loading @@ -15,6 +17,9 @@ int main(int argc, char **argv) fprintf(stderr, "Pass URL as argument please\n"); return 1; } if(argc>2) arg2=argv[2]; URL = argv[1]; /* provide this to the rest */ fprintf(stderr, "URL: %s\n", URL); Loading
tests/libtest/test.h +2 −0 Original line number Diff line number Diff line #include <curl.h> #include <stdio.h> extern char *arg2; /* set by first.c to the argv[2] or NULL */